This commit is contained in:
2024-04-06 13:45:58 +02:00
parent 12ea3d8d28
commit dc85632c74
+2 -2
View File
@@ -75,7 +75,7 @@ SEND_MP3 = "/update_mp3"
GET_PLAYLIST = "/get_music"
LIBRARIAN_SERVICE_ADDRESS = "http://192.168.1.191:5001"
SEND_QUERY = "/query"
TIME_BETWEEN_CALLS = 10000
TIME_BETWEEN_CALLS = 100000
LAST_SPONTANEOUS_CALL = datetime.now()
# *=========================================== Platform Specific Predefines
@@ -671,7 +671,7 @@ async def check_data():
file_data = json.load(file_music_memory)
new_data = []
new_data.append(file_data[0])
new_data.extend(file_data[-20])
new_data.extend(file_data[:-20])
file_music_memory.truncate(0)
file_music_memory.seek(0)
# convert back to json.