chore(style): Black style

This commit is contained in:
Juanjo Salvador
2024-07-18 09:48:13 +00:00
parent f4b4e27559
commit a68eee0324
8 changed files with 15 additions and 8 deletions

View File

@@ -12,12 +12,14 @@ def json_to_class(data):
else:
return Torrent(data)
# This deals with converting the dict to an object
class Torrent(object):
def __init__(self, my_dict):
for key in my_dict:
setattr(self, key, my_dict[key])
class TorrentSite(Enum):
"""
Contains torrent sites
@@ -25,5 +27,5 @@ class TorrentSite(Enum):
NYAASI = "https://nyaa.si"
SUKEBEINYAASI = "https://sukebei.nyaa.si"
NYAALAND = "https://nyaa.land"
NYAALAND = "https://nyaa.land"