Spaces:
Sleeping
Sleeping
$P@D$3RV£R commited on
Commit ·
65dba5d
1
Parent(s): a7059b4
Fix indentation on line 315 if statement
Browse files
app.py
CHANGED
|
@@ -312,9 +312,9 @@ def tagger():
|
|
| 312 |
|
| 313 |
# Get current image set index (default to 0 if not set)
|
| 314 |
image_set_index = app.config.get("IMAGE_SET_INDEX", 0)
|
| 315 |
-
|
| 316 |
-
|
| 317 |
-
|
| 318 |
|
| 319 |
# Get image sets for current folder
|
| 320 |
image_sets = current_folder_set['image_sets']
|
|
|
|
| 312 |
|
| 313 |
# Get current image set index (default to 0 if not set)
|
| 314 |
image_set_index = app.config.get("IMAGE_SET_INDEX", 0)
|
| 315 |
+
if image_set_index < 0:
|
| 316 |
+
image_set_index = 0
|
| 317 |
+
app.config["IMAGE_SET_INDEX"] = 0
|
| 318 |
|
| 319 |
# Get image sets for current folder
|
| 320 |
image_sets = current_folder_set['image_sets']
|