mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-23 00:24:09 +00:00
Whitespace changes
This commit is contained in:
parent
bb2e684a8a
commit
57358f1a99
|
@ -43,6 +43,7 @@ WIKI_JUST_DOMAIN: str = ""
|
||||||
|
|
||||||
profile_fields = {"profile-location": _("Location"), "profile-aboutme": _("About me"), "profile-link-google": _("Google link"), "profile-link-facebook":_("Facebook link"), "profile-link-twitter": _("Twitter link"), "profile-link-reddit": _("Reddit link"), "profile-link-twitch": _("Twitch link"), "profile-link-psn": _("PSN link"), "profile-link-vk": _("VK link"), "profile-link-xbl": _("XBL link"), "profile-link-steam": _("Steam link"), "profile-link-discord": _("Discord handle"), "profile-link-battlenet": _("Battle.net handle")}
|
profile_fields = {"profile-location": _("Location"), "profile-aboutme": _("About me"), "profile-link-google": _("Google link"), "profile-link-facebook":_("Facebook link"), "profile-link-twitter": _("Twitter link"), "profile-link-reddit": _("Reddit link"), "profile-link-twitch": _("Twitch link"), "profile-link-psn": _("PSN link"), "profile-link-vk": _("VK link"), "profile-link-xbl": _("XBL link"), "profile-link-steam": _("Steam link"), "profile-link-discord": _("Discord handle"), "profile-link-battlenet": _("Battle.net handle")}
|
||||||
|
|
||||||
|
|
||||||
class DataFile:
|
class DataFile:
|
||||||
"""Data class which instance of is shared by multiple modules to remain consistent and do not cause too many IO operations."""
|
"""Data class which instance of is shared by multiple modules to remain consistent and do not cause too many IO operations."""
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
@ -239,6 +240,7 @@ def parse_mw_request_info(request_data: dict, url: str):
|
||||||
))
|
))
|
||||||
return request_data
|
return request_data
|
||||||
|
|
||||||
|
|
||||||
def add_to_dict(dictionary, key):
|
def add_to_dict(dictionary, key):
|
||||||
if key in dictionary:
|
if key in dictionary:
|
||||||
dictionary[key] += 1
|
dictionary[key] += 1
|
||||||
|
@ -246,6 +248,7 @@ def add_to_dict(dictionary, key):
|
||||||
dictionary[key] = 1
|
dictionary[key] = 1
|
||||||
return dictionary
|
return dictionary
|
||||||
|
|
||||||
|
|
||||||
def prepare_paths(path, dry=False):
|
def prepare_paths(path, dry=False):
|
||||||
global WIKI_API_PATH
|
global WIKI_API_PATH
|
||||||
global WIKI_ARTICLE_PATH
|
global WIKI_ARTICLE_PATH
|
||||||
|
|
Loading…
Reference in a new issue