Store all user data in a folder

This commit is contained in:
mez 2024-08-06 19:37:17 +01:00
parent f92d6fab53
commit d3d579840a
19 changed files with 84 additions and 151 deletions

View file

@ -27,7 +27,7 @@ def commentpage(ficno,directory,local=False):
else:
fffandom = False
except:
origfile = "originalsmeta." + str(fileread.original)
origfile = "files.originalsmeta." + str(fileread.original)
origread = import_module(origfile)
if any(item in fffandoms for item in origread.fandom):
fffandom = True
@ -143,10 +143,10 @@ def allcomments(local=False):
ficcountstring = "0" + str(ficcount)
else:
ficcountstring = str(ficcount)
if os.path.exists("originalsmeta/" + ficcountstring + ".py"):
commentpage(ficcount,"originalsmeta",local)
elif os.path.exists("translationsmeta/" + ficcountstring + ".py"):
commentpage(ficcount,"translationsmeta",local)
if os.path.exists("files/originalsmeta/" + ficcountstring + ".py"):
commentpage(ficcount,"files.originalsmeta",local)
elif os.path.exists("files/translationsmeta/" + ficcountstring + ".py"):
commentpage(ficcount,"files.translationsmeta",local)
if __name__ == "__main__":
allcomments()