Nico Miguelino
a4ed15f2e9
Refactor non-API routes into separate files. ( #2082 )
2024-10-07 10:08:03 -07:00
Nico Miguelino
f935b95115
Enables Flake8 E501 ( #2019 )
2024-08-13 15:48:33 -07:00
Nico Miguelino
70ae0d7314
Fix: Making Anthias work without Internet ( #1965 )
2024-07-10 06:56:46 -07:00
Nico Miguelino
87e2d493ce
Adds Python linting in CI ( #1939 )
2024-06-21 09:11:14 -07:00
nicomiguelino
454368547f
fix: add exception handling when making an API call to Docker Hub
2024-05-23 10:49:15 -07:00
nicomiguelino
b4014fdedf
fix: viewer crashes if the results return an empty list
...
* return None if the list is empty
* add a DEVICE_TYPE environment variable in the viewer container
2024-05-23 07:28:42 -07:00
nicomiguelino
21b29e08bc
fix: update header notification not disappearing after update
...
* modified the check if Anthias is updated or not
* added manual upgrade instructions in the Upgrade Anthias section
2024-05-22 14:31:05 -07:00
nicomiguelino
79534040f6
Fix some failing unit test cases. Enforce unicode strings.
2023-02-21 15:02:54 -08:00
nicomiguelino
3d1e64a0f9
Apply Stage 2 changes to .py files using futurize
...
- Changes are not yet tested thoroughly.
2023-02-16 22:26:31 -08:00
Viktor Petersson
7001860dc4
Updates GitHub reference
2022-12-13 13:06:49 +00:00
Emyll Almonte
917b4b81a3
Update github.py
2022-11-29 13:36:38 -05:00
Emyll Almonte
d1b8b98dde
Update github.py
2022-11-29 13:13:25 -05:00
Viktor Petersson
a93756353d
Adds error handling
2022-09-20 16:37:46 +01:00
Viktor Petersson
5a727fe3ce
Removes Mixpanel dependency
2022-09-20 16:34:56 +01:00
Nash Kaminski
a2cf9956bd
Improve error handling when interacting with the Github API.
...
This change improves the error handling when interacting with the github
API by enforcing a 5 minute backoff on API call failures as well as
caches the remote branch presence/absence for 24 hours.
This prevents potential crashes when Internet connectivity is
unavailable, as well as from having one's IP address rate limited by Github
if the remote branch on the pi references a branch name that does not exist
under https://github.com/Screenly/screenly-ose/tree/
Prior to this change, this scenario causes the remote branch status to be
checked during every UI request.
Signed-off-by: Nash Kaminski <nashkaminski@kaminski.io >
2021-10-01 19:53:26 -05:00
Viktor Petersson
8587b18143
Updates dependency
2021-01-08 16:41:49 +00:00
Viktor Petersson
9540024fd2
More analytics.
2020-12-27 16:33:32 +00:00
Viktor Petersson
2b51bd3cf0
Slight improvements to logic
2020-12-22 07:22:54 +00:00
Viktor Petersson
fdca754ccb
Adds cleanup and fixes missing string
2020-12-21 18:29:12 +00:00
Viktor Petersson
191e87b5bb
Adds missing import
2020-12-21 18:17:25 +00:00
Viktor Petersson
2d81dc404e
Moves some of the file based logic to redis
2020-12-21 15:25:24 +00:00
antonmolodykh
fc21374898
Fix for check_update
2018-02-07 19:19:46 +06:00
Viktor Petersson
83bb4a4328
Rename functions to support test structure.
2018-01-02 19:22:54 +00:00
Viktor Petersson
26322f8460
Fixes tests.
2018-01-02 19:00:39 +00:00
Viktor Petersson
6493f7b1ea
Reverts previous commit
2018-01-02 18:45:55 +00:00
Viktor Petersson
eee6e457ee
Adds master as the default branch.
2018-01-02 18:45:16 +00:00
Viktor Petersson
053572324c
Switches update logic to query Github directly.
2018-01-01 22:10:20 +00:00