This repository has been archived on 2022-03-12. You can view files and clone it, but cannot push or open issues or pull requests.
reValuate/Server/databasefornow.py
Yamozha 91e0557b20 included "database" and primitive balance checking
let's make it so we have a way to integrate it with sql in later stages.
PLEASE FIX the "fstring" in the js and the id to balance sequence
2021-02-03 18:45:10 +02:00

8 lines
200 B
Python

userNames = {"1":"boyan", "2":"nikola"}
usersCoins = {"1":"200", "2":"100"}
def checkBalance(ID):
userName = userNames[f"{ID}"]
userCoins = usersCoins[f"{ID}"]
return userName, userCoins