1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

Added initial prompt for name

This commit is contained in:
Krateng 2019-12-05 23:23:48 +01:00
parent fd0033e1c0
commit 1316026999
2 changed files with 8 additions and 1 deletions

View File

@ -78,6 +78,13 @@ def setup():
pass
if settings.get_settings("NAME") is None:
print("Please enter your name. This will be displayed e.g. when comparing your charts to another user. Leave this empty if you would not like to specify a name right now.")
name = input()
if name == "": name = "Generic Maloja User"
settings.update_settings("settings/settings.ini",{"NAME":name},create_new=True)
def getInstance():
try:
output = subprocess.check_output(["pidof","Maloja"])

View File

@ -51,7 +51,7 @@ SCROBBLES_GOLD = 250
SCROBBLES_PLATINUM = 500
SCROBBLES_DIAMOND = 1000
# name for comparisons
NAME = "Generic Maloja User"
NAME = None
[Misc]