Added doc string for log_writer

This commit is contained in:
sTiKyt 2020-06-09 08:03:08 +03:00
parent 04d98d28d6
commit 3f7300663d
No known key found for this signature in database
GPG Key ID: 510E1C3C9B2414B4

View File

@ -163,6 +163,11 @@ def credentials_collector():
creds.close() creds.close()
def log_writer(ctx): # Writing log def log_writer(ctx): # Writing log
"""I have no idea what it does, someone does, so if you are reading this - explain wtf is this method...
Args:
ctx ([type]): [description]
"""
logFile = open("log.txt", "w") logFile = open("log.txt", "w")
logFile.write(ctx.replace(default_palette[0], "").replace(default_palette[1], "").replace(default_palette[2], "").replace(default_palette[3], "").replace(default_palette[4], "") + "\n") logFile.write(ctx.replace(default_palette[0], "").replace(default_palette[1], "").replace(default_palette[2], "").replace(default_palette[3], "").replace(default_palette[4], "") + "\n")
print(ctx) print(ctx)