mirror of
				https://gitea.augustin64.fr/piair/MsRewards-Reborn.git
				synced 2025-10-31 14:23:53 +01:00 
			
		
		
		
	fixed stuff
This commit is contained in:
		| @@ -58,6 +58,7 @@ def update_jobs(): | ||||
|     with open("/app/MsRewards-Reborn/user_data/configs.json", "r") as inFile: | ||||
|         configs = json.load(inFile) | ||||
|     for i in configs: | ||||
|         try :  | ||||
|             h, m = configs[i]["time"].split(":") | ||||
|             print("\033[36m" + f"config {i} : {h}:{m}" + "\033[0m") | ||||
|             TriggerDict[i] = CronTrigger( | ||||
| @@ -85,6 +86,9 @@ def update_jobs(): | ||||
|                     scheduler.remove_job(i) | ||||
|                 except Exception as e : | ||||
|                     print(f"\033[33merror with deleting config {i} : {e}\033[0m") | ||||
|         except Exception as e: | ||||
|             print(e) | ||||
|  | ||||
|  | ||||
| def edit_version(): | ||||
|     with open("/app/MsRewards-Reborn/version", "r") as f: | ||||
|   | ||||
| @@ -39,10 +39,10 @@ | ||||
| {%if not current_user.is_authenticated %} | ||||
|     <h1>Already logged in</h1> | ||||
| {% else %} | ||||
| {{configs}} | ||||
| {% for i in configs %} | ||||
|  | ||||
| <option id="{{configs[i]['name']}}" value="{{i}}">{{configs[i]['name']}}</option> | ||||
|  | ||||
| {% for i in data %} | ||||
| <option id="{{data[i]['name']}}" value="{{i}}">{{data[i]['name']}}</option> | ||||
| {% endfor %} | ||||
|  | ||||
| {% endif %} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user