updated to send feedback
This commit is contained in:
23
test_feedback.py
Executable file
23
test_feedback.py
Executable file
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env python3
|
||||
import os
|
||||
import sys
|
||||
import json
|
||||
|
||||
# Add the signage_player directory to path
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'signage_player'))
|
||||
|
||||
from get_playlists import send_playlist_check_feedback
|
||||
|
||||
def load_config():
|
||||
config_path = os.path.join(os.path.dirname(__file__), 'signage_player', 'main_data', 'app_config.txt')
|
||||
with open(config_path, 'r') as f:
|
||||
return json.load(f)
|
||||
|
||||
def test_feedback():
|
||||
print("Testing feedback system...")
|
||||
config = load_config()
|
||||
result = send_playlist_check_feedback(config, 5)
|
||||
print(f"Feedback test result: {result}")
|
||||
|
||||
if __name__ == "__main__":
|
||||
test_feedback()
|
||||
Reference in New Issue
Block a user