Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -117,7 +117,7 @@ def main(payload):
|
|
| 117 |
|
| 118 |
# Background thread function
|
| 119 |
def background_worker():
|
| 120 |
-
payload = 'student_code=
|
| 121 |
consecutive_failures = 0
|
| 122 |
year = int(payload.split('=')[1][7:9])
|
| 123 |
|
|
@@ -133,11 +133,11 @@ def background_worker():
|
|
| 133 |
consecutive_failures = 0
|
| 134 |
admission_number = int(payload.split('=')[1][-6:]) - 100
|
| 135 |
year += 1
|
| 136 |
-
payload = f'student_code=
|
| 137 |
|
| 138 |
# Increment student_code
|
| 139 |
student_number = int(payload.split('=')[1])
|
| 140 |
-
payload = f'student_code={student_number + 1:015d}
|
| 141 |
|
| 142 |
# Start the background worker thread
|
| 143 |
threading.Thread(target=background_worker, daemon=True).start()
|
|
|
|
| 117 |
|
| 118 |
# Background thread function
|
| 119 |
def background_worker():
|
| 120 |
+
payload = 'student_code=321456109002825' # Starting point
|
| 121 |
consecutive_failures = 0
|
| 122 |
year = int(payload.split('=')[1][7:9])
|
| 123 |
|
|
|
|
| 133 |
consecutive_failures = 0
|
| 134 |
admission_number = int(payload.split('=')[1][-6:]) - 100
|
| 135 |
year += 1
|
| 136 |
+
payload = f'student_code=3214561{year}{admission_number :06d}'
|
| 137 |
|
| 138 |
# Increment student_code
|
| 139 |
student_number = int(payload.split('=')[1])
|
| 140 |
+
payload = f'student_code={student_number + 1:015d}
|
| 141 |
|
| 142 |
# Start the background worker thread
|
| 143 |
threading.Thread(target=background_worker, daemon=True).start()
|