mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 04:53:01 +00:00
rewrite remove duplicates to support removing duplicates in albums tracks efficiently
+ remove flags added to client settings page + misc
This commit is contained in:
@@ -4,7 +4,7 @@ This module contains functions for the server
|
||||
import time
|
||||
|
||||
from app.lib.populate import Populate, PopulateCancelledError
|
||||
from app.settings import ParserFlags, get_flag, get_scan_sleep_time
|
||||
from app.settings import SessionVarKeys, get_flag, get_scan_sleep_time
|
||||
from app.utils.generators import get_random_str
|
||||
from app.utils.threading import background
|
||||
|
||||
@@ -20,7 +20,7 @@ def run_periodic_scans():
|
||||
run_periodic_scan = True
|
||||
|
||||
while run_periodic_scan:
|
||||
run_periodic_scan = get_flag(ParserFlags.DO_PERIODIC_SCANS)
|
||||
run_periodic_scan = get_flag(SessionVarKeys.DO_PERIODIC_SCANS)
|
||||
|
||||
try:
|
||||
Populate(instance_key=get_random_str())
|
||||
|
||||
Reference in New Issue
Block a user