windows updaate
This commit is contained in:
1 parent
ce5175d8db
commit
c2b91f3f47
2 files changed
+16
-4
No files matched your search
@@ -359,6 +359,13 @@ class MainWindow(QMainWindow):
|
|||||||
self.last_update_label.setText(f"Last update: {datetime.now().strftime('%Y-%m-%d %I:%M:%S %p')}")
|
self.last_update_label.setText(f"Last update: {datetime.now().strftime('%Y-%m-%d %I:%M:%S %p')}")
|
||||||
self.status_label.setText("Ready")
|
self.status_label.setText("Ready")
|
||||||
|
|
||||||
|
# Append result to log file
|
||||||
|
try:
|
||||||
|
with open('playlist_log.txt', 'a', encoding='utf-8') as f:
|
||||||
|
f.write(result + '\n')
|
||||||
|
except Exception as e:
|
||||||
|
print(f"Error writing to log: {e}")
|
||||||
|
|
||||||
# Refresh logs
|
# Refresh logs
|
||||||
self.log_viewer.refresh_logs()
|
self.log_viewer.refresh_logs()
|
||||||
|
|
||||||
@@ -386,6 +393,13 @@ class MainWindow(QMainWindow):
|
|||||||
"""Handle automatic update completion"""
|
"""Handle automatic update completion"""
|
||||||
self.last_update_label.setText(f"Last update: {datetime.now().strftime('%Y-%m-%d %I:%M:%S %p')}")
|
self.last_update_label.setText(f"Last update: {datetime.now().strftime('%Y-%m-%d %I:%M:%S %p')}")
|
||||||
|
|
||||||
|
# Append result to log file
|
||||||
|
try:
|
||||||
|
with open('playlist_log.txt', 'a', encoding='utf-8') as f:
|
||||||
|
f.write(result + '\n')
|
||||||
|
except Exception as e:
|
||||||
|
print(f"Error writing to log: {e}")
|
||||||
|
|
||||||
# Refresh logs
|
# Refresh logs
|
||||||
self.log_viewer.refresh_logs()
|
self.log_viewer.refresh_logs()
|
||||||
|
|
||||||
|
|||||||
+2
-4
@@ -8,7 +8,5 @@ if exist .venv\Scripts\activate.bat (
|
|||||||
call .venv\Scripts\activate.bat
|
call .venv\Scripts\activate.bat
|
||||||
)
|
)
|
||||||
|
|
||||||
REM Run the application
|
REM Run the application without console window
|
||||||
python journey_fm_app.py
|
pythonw journey_fm_app.py
|
||||||
|
|
||||||
pause
|
|
||||||
Reference in new issue
Block a user