Sep-08-2018, 11:45 PM
what is the name of the first program.
Too many things named database, makes it confusing.
this code in giveaway.py will always run.
set is a bad name for a method as it as a python command.
you should add an empty line between methods to make code more readable.
Too many things named database, makes it confusing.
this code in giveaway.py will always run.
# If a giveaway is saved in memory, load it automaticly db = database.database() db.init() print(db.data["userdata"]["help"])if you only want this to run if the program is executed from command routine, change to:
if __name__ == '__main__': # If a giveaway is saved in memory, load it automaticly db = database.database() db.init() print(db.data["userdata"]["help"])some other items, indentation should be 4.
set is a bad name for a method as it as a python command.
you should add an empty line between methods to make code more readable.