Skip to content
Snippets Groups Projects
Commit 95540c1c authored by David Trattnig's avatar David Trattnig
Browse files

No-content status code validation

parent ec2f1dba
No related branches found
No related tags found
No related merge requests found
......@@ -162,7 +162,7 @@ class ApiService():
try:
api_url = self.sync_host + self.api_playlog
r = requests.post(api_url, json=json_playlog)
if r.status_code == 200:
if r.status_code == 204:
self.logger.info("Successfully pushed playlog for '%s' to '%s'" % (playlog.track_start, self.sync_host))
playlog.is_synced = True
playlog.save()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment