Fabian P. Schmidt
903b264814
management/commands/fetch_data: Locally disable redefined-builtin pylint error (W0622)
...
In Python 3.3 ConnectionError was added as subclass in python builtins,
see PEP3151 or [1] for more details.
[1]: https://docs.python.org/3/whatsnew/3.3.html#pep-3151-reworking-the-os-and-io-exception-hierarchy
Fixes redefined-builtin (W0622) pylint error.
Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>
2020-01-08 15:17:33 +00:00
Fabian P. Schmidt
834c7b67fe
management/fetch_data: Re-use fetch_data task
...
Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>
2019-12-31 14:38:54 +00:00
Fabian P. Schmidt
bfc0fd639b
Add absolute_import to all relevant files (W1618)
...
Fixes no-absolute-import (W1618) pylint error.
Similar commit in db: librespacefoundation/satnogs/satnogs-db@d4fb5189d19aa7fc12e1adcfbc7b3ca07452fed6
Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>
2019-12-31 08:51:04 +00:00
Fabian P. Schmidt
74137ce8d8
management/fetch_data: Add workaround for db API change
...
Fixes #698 .
[patch v2: Added default 'None' to prevent KeyError when using an old
DB API endpoint]
Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>
2019-12-30 08:14:03 +00:00
Fabian P. Schmidt
744106b495
management/fetch_data: Show import statistics
...
Instead of printing several hundred lines on initialization,
show some useful statistics instead.
Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>
2019-12-04 20:07:48 +01:00
Alfredos-Panagiotis Damkalis
758c1dfc03
Fix C0111 lint issues
...
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2019-11-22 20:38:38 +02:00
Vasilis Tsiligiannis
f5180258e3
pylint: Do not use 'len()' to determine variable emptiness
...
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-09-24 20:30:15 +03:00
Vasilis Tsiligiannis
68f90d921c
tox: Check imports with 'isort' and apply changes
...
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-09-23 14:08:11 +03:00
Alfredos-Panagiotis Damkalis
53fa1bf378
Remove Mode model
...
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2019-05-04 04:13:09 +03:00
Alfredos-Panagiotis Damkalis
03f669711e
Refactor transmitter model
...
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2019-05-04 04:13:09 +03:00
Alfredos-Panagiotis Damkalis
b522d4304c
Stop fetching from db on zero lenght db api url
2019-04-05 22:40:47 +03:00
Vasilis Tsiligiannis
5d3c4e4883
Remove unsupported key from fetched satellite data
...
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-01-29 23:37:58 +02:00
Fabian P. Schmidt
4f3c419cdf
commands/fetch_data: Replace urllib3 with requests library
2018-12-10 02:57:30 +01:00
Nikos Roussos
1b37650c12
Fix all bera exceptions
...
* Use celery tasks for fetching data
2017-11-17 16:35:35 +02:00
Nikos Roussos
f048e333e8
Fetch TLEs on Site Settings
2016-01-26 17:05:17 +02:00
Nikos Roussos
5806f4f0c2
[ Fixes #150 ] Create model for MODES and sync them from DB
2015-08-14 17:06:25 +03:00
Nikos Roussos
f63285a288
s/transponders/transmitters/
2015-07-23 18:18:01 +03:00
Nikos Roussos
5760c6a459
Add site settings for fetching data
2015-07-22 14:16:15 +03:00
Nikos Roussos
e3c635c7e7
pep8
2015-05-10 13:31:19 +03:00
Nikos Roussos
94869715c3
Add cronjob script for updating all data
2015-05-09 16:51:49 +03:00
Nikos Roussos
21a3f3186e
Add command to fetch Satellites/Transponder from DB API
2015-05-09 12:50:57 +03:00