geovisio 2.7.0__py3-none-any.whl → 2.7.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- geovisio/__init__.py +2 -2
- geovisio/admin_cli/cleanup.py +2 -2
- geovisio/translations/de/LC_MESSAGES/messages.mo +0 -0
- geovisio/translations/de/LC_MESSAGES/messages.po +139 -2
- geovisio/translations/el/LC_MESSAGES/messages.mo +0 -0
- geovisio/translations/el/LC_MESSAGES/messages.po +685 -0
- geovisio/translations/en/LC_MESSAGES/messages.mo +0 -0
- geovisio/translations/en/LC_MESSAGES/messages.po +126 -118
- geovisio/translations/fr/LC_MESSAGES/messages.mo +0 -0
- geovisio/translations/fr/LC_MESSAGES/messages.po +1 -1
- geovisio/translations/hu/LC_MESSAGES/messages.mo +0 -0
- geovisio/translations/hu/LC_MESSAGES/messages.po +773 -0
- geovisio/translations/messages.pot +125 -117
- geovisio/translations/nl/LC_MESSAGES/messages.mo +0 -0
- geovisio/translations/nl/LC_MESSAGES/messages.po +24 -16
- geovisio/utils/pictures.py +18 -20
- geovisio/utils/sequences.py +21 -23
- geovisio/utils/upload_set.py +40 -52
- geovisio/web/collections.py +19 -3
- geovisio/web/docs.py +35 -1
- geovisio/web/items.py +15 -6
- geovisio/web/map.py +86 -18
- geovisio/web/upload_set.py +9 -6
- geovisio/workers/runner_pictures.py +19 -33
- {geovisio-2.7.0.dist-info → geovisio-2.7.1.dist-info}/METADATA +2 -2
- {geovisio-2.7.0.dist-info → geovisio-2.7.1.dist-info}/RECORD +28 -24
- {geovisio-2.7.0.dist-info → geovisio-2.7.1.dist-info}/WHEEL +1 -1
- {geovisio-2.7.0.dist-info → geovisio-2.7.1.dist-info}/LICENSE +0 -0
geovisio/__init__.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""GeoVisio API - Main"""
|
|
2
2
|
|
|
3
|
-
__version__ = "2.7.
|
|
3
|
+
__version__ = "2.7.1"
|
|
4
4
|
|
|
5
5
|
import os
|
|
6
6
|
from flask import Flask, jsonify, stream_template, send_from_directory, redirect, request
|
|
@@ -60,7 +60,7 @@ dictConfig(LOGGING_CONFIG)
|
|
|
60
60
|
# Init i18n
|
|
61
61
|
def get_locale():
|
|
62
62
|
try:
|
|
63
|
-
return request.accept_languages.best_match(["de", "fr", "en"]) or "en"
|
|
63
|
+
return request.accept_languages.best_match(["de", "fr", "en", "es", "hu"]) or "en"
|
|
64
64
|
except:
|
|
65
65
|
return "en"
|
|
66
66
|
|
geovisio/admin_cli/cleanup.py
CHANGED
|
@@ -60,12 +60,12 @@ def cleanup(sequences=[], full=False, database=False, cache=False, permanentPics
|
|
|
60
60
|
if database:
|
|
61
61
|
log.info("Cleaning up database...")
|
|
62
62
|
if allSequences:
|
|
63
|
-
conn.execute("DELETE FROM
|
|
63
|
+
conn.execute("DELETE FROM job_queue")
|
|
64
64
|
conn.execute("DELETE FROM sequences_pictures")
|
|
65
65
|
conn.execute("DELETE FROM sequences")
|
|
66
66
|
conn.execute("DELETE FROM pictures")
|
|
67
67
|
else:
|
|
68
|
-
conn.execute("DELETE FROM
|
|
68
|
+
conn.execute("DELETE FROM job_queue WHERE picture_id = ANY(%s)", [pics])
|
|
69
69
|
conn.execute("DELETE FROM sequences_pictures WHERE seq_id = ANY(%s)", [sequences])
|
|
70
70
|
conn.execute("DELETE FROM sequences WHERE id = ANY(%s)", [sequences])
|
|
71
71
|
conn.execute("DELETE FROM pictures WHERE id = ANY(%s)", [pics])
|
|
Binary file
|
|
@@ -8,8 +8,8 @@ msgstr ""
|
|
|
8
8
|
"Project-Id-Version: PROJECT VERSION\n"
|
|
9
9
|
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
|
10
10
|
"POT-Creation-Date: 2024-07-10 14:10+0200\n"
|
|
11
|
-
"PO-Revision-Date: 2024-
|
|
12
|
-
"Last-Translator:
|
|
11
|
+
"PO-Revision-Date: 2024-11-10 08:10+0000\n"
|
|
12
|
+
"Last-Translator: mcliquid <weblate@mcliquid.de>\n"
|
|
13
13
|
"Language-Team: German <http://weblate.panoramax.xyz/projects/panoramax/api/"
|
|
14
14
|
"de/>\n"
|
|
15
15
|
"Language: de\n"
|
|
@@ -665,3 +665,140 @@ msgstr ""
|
|
|
665
665
|
#: geovisio/web/upload_set.py:460
|
|
666
666
|
msgid "You're not authorized to add picture to this upload set"
|
|
667
667
|
msgstr "Sie sind nicht authorisiert Fotos zu diesem Set hinzuzufügen"
|
|
668
|
+
|
|
669
|
+
#: geovisio/utils/upload_set.py:158
|
|
670
|
+
msgid ""
|
|
671
|
+
"The picture is too similar to another one (nearby and taken almost at the "
|
|
672
|
+
"same time)"
|
|
673
|
+
msgstr ""
|
|
674
|
+
"Das Foto ist zu ähnlich mit einem anderen (in der Nähe und zur gleichen Zeit "
|
|
675
|
+
"aufgenommen)"
|
|
676
|
+
|
|
677
|
+
#: geovisio/utils/upload_set.py:161
|
|
678
|
+
msgid "The sent file is not a valid JPEG"
|
|
679
|
+
msgstr "Die gesendete Datei ist kein valides JPEG"
|
|
680
|
+
|
|
681
|
+
#: geovisio/utils/upload_set.py:164
|
|
682
|
+
msgid ""
|
|
683
|
+
"The picture has invalid EXIF or XMP metadata, making it impossible to use"
|
|
684
|
+
msgstr ""
|
|
685
|
+
"Das Foto hat invalide EXIF oder XMP Metadaten, sodass es unmöglich ist es zu "
|
|
686
|
+
"nutzen"
|
|
687
|
+
|
|
688
|
+
#: geovisio/utils/excluded_areas.py:82
|
|
689
|
+
msgid "Impossible to find excluded area"
|
|
690
|
+
msgstr "Unmöglich, den ausgeschlossenen Bereich zu finden"
|
|
691
|
+
|
|
692
|
+
#: geovisio/utils/upload_set.py:167
|
|
693
|
+
msgid "Something went very wrong, but not due to the picture itself"
|
|
694
|
+
msgstr "Etwas ist sehr schief gelaufen, aber nicht wegen des Bildes selbst"
|
|
695
|
+
|
|
696
|
+
#: geovisio/web/items.py:1095 geovisio/web/upload_set.py:620
|
|
697
|
+
msgid "Picture has invalid metadata"
|
|
698
|
+
msgstr "Bild hat ungültige Metadaten"
|
|
699
|
+
|
|
700
|
+
#: geovisio/web/reports.py:352
|
|
701
|
+
msgid "You're not authorized to list reports"
|
|
702
|
+
msgstr "Du bist nicht berechtigt, Berichte aufzulisten"
|
|
703
|
+
|
|
704
|
+
#: geovisio/web/excluded_areas.py:133
|
|
705
|
+
msgid "You must be logged-in as admin to access all excluded areas"
|
|
706
|
+
msgstr ""
|
|
707
|
+
"Du musst als Administrator eingeloggt sein, um auf alle ausgeschlossenen "
|
|
708
|
+
"Bereiche zugreifen zu können"
|
|
709
|
+
|
|
710
|
+
#: geovisio/web/reports.py:144
|
|
711
|
+
msgid "Only authenticated users can access reports"
|
|
712
|
+
msgstr "Nur authentifizierte Benutzer können auf Berichte zugreifen"
|
|
713
|
+
|
|
714
|
+
#: geovisio/web/reports.py:148 geovisio/web/reports.py:266
|
|
715
|
+
msgid "Report doesn't exist"
|
|
716
|
+
msgstr "Der Bericht existiert nicht"
|
|
717
|
+
|
|
718
|
+
#: geovisio/web/reports.py:157
|
|
719
|
+
msgid "You're not authorized to access this report"
|
|
720
|
+
msgstr "Du bist nicht berechtigt, auf diesen Bericht zuzugreifen"
|
|
721
|
+
|
|
722
|
+
#: geovisio/web/excluded_areas.py:135
|
|
723
|
+
msgid "You're not authorized to access all excluded areas"
|
|
724
|
+
msgstr ""
|
|
725
|
+
"Du bist nicht berechtigt, auf alle ausgeschlossenen Bereiche zuzugreifen"
|
|
726
|
+
|
|
727
|
+
#: geovisio/web/reports.py:89 geovisio/web/reports.py:99
|
|
728
|
+
msgid "Impossible to create a Report"
|
|
729
|
+
msgstr "Erstellung eines Berichts nicht möglich"
|
|
730
|
+
|
|
731
|
+
#: geovisio/web/reports.py:91
|
|
732
|
+
msgid "Parameter for creating a Report should be a valid JSON"
|
|
733
|
+
msgstr ""
|
|
734
|
+
"Parameter für die Erstellung eines Berichts sollte ein gültiges JSON sein"
|
|
735
|
+
|
|
736
|
+
#: geovisio/web/reports.py:284
|
|
737
|
+
msgid "Impossible to edit the Report"
|
|
738
|
+
msgstr "Bearbeitung des Berichts nicht möglich"
|
|
739
|
+
|
|
740
|
+
#: geovisio/web/excluded_areas.py:174 geovisio/web/excluded_areas.py:338
|
|
741
|
+
msgid "Parameter for creating an Excluded Area should be a valid JSON"
|
|
742
|
+
msgstr ""
|
|
743
|
+
"Der Parameter für die Erstellung einer Excluded Area sollte ein gültiges "
|
|
744
|
+
"JSON sein"
|
|
745
|
+
|
|
746
|
+
#: geovisio/web/reports.py:277
|
|
747
|
+
msgid "You're not authorized to edit this Report"
|
|
748
|
+
msgstr "Du bist nicht berechtigt, diesen Bericht zu bearbeiten"
|
|
749
|
+
|
|
750
|
+
#: geovisio/web/excluded_areas.py:177 geovisio/web/excluded_areas.py:235
|
|
751
|
+
msgid "You must be logged-in as admin to edit excluded areas"
|
|
752
|
+
msgstr ""
|
|
753
|
+
"Du musst als Administrator eingeloggt sein, um ausgeschlossene Bereiche zu "
|
|
754
|
+
"bearbeiten"
|
|
755
|
+
|
|
756
|
+
#: geovisio/web/excluded_areas.py:230 geovisio/web/excluded_areas.py:242
|
|
757
|
+
msgid "Impossible to replace all Excluded Areas"
|
|
758
|
+
msgstr "Unmöglich, alle ausgeschlossenen Bereiche zu ersetzen"
|
|
759
|
+
|
|
760
|
+
#: geovisio/web/excluded_areas.py:232
|
|
761
|
+
msgid "Parameter for replacing all Excluded Areas should be a valid JSON"
|
|
762
|
+
msgstr ""
|
|
763
|
+
"Der Parameter zum Ersetzen aller ausgeschlossenen Bereiche sollte ein "
|
|
764
|
+
"gültiges JSON sein"
|
|
765
|
+
|
|
766
|
+
#: geovisio/web/items.py:1061
|
|
767
|
+
msgid "The collection has been deleted, impossible to add pictures to it"
|
|
768
|
+
msgstr "Die Sammlung wurde gelöscht, es ist unmöglich, ihr Bilder hinzuzufügen"
|
|
769
|
+
|
|
770
|
+
#: geovisio/web/upload_set.py:216
|
|
771
|
+
msgid "You're not authorized to list pictures in this upload set"
|
|
772
|
+
msgstr "Du bist nicht berechtigt, Bilder in diesem Upload-Set aufzulisten"
|
|
773
|
+
|
|
774
|
+
#: geovisio/web/upload_set.py:628
|
|
775
|
+
msgid ""
|
|
776
|
+
"Impossible to open file as image. The only supported image format is jpg."
|
|
777
|
+
msgstr ""
|
|
778
|
+
"Es ist nicht möglich, die Datei als Bild zu öffnen. Das einzige unterstützte "
|
|
779
|
+
"Bildformat ist jpg."
|
|
780
|
+
|
|
781
|
+
#: geovisio/web/upload_set.py:759
|
|
782
|
+
msgid "You're not authorized to delete this upload set"
|
|
783
|
+
msgstr "Du bist nicht berechtigt, dieses Upload-Set zu löschen"
|
|
784
|
+
|
|
785
|
+
#: geovisio/web/items.py:1052
|
|
786
|
+
#, python-format
|
|
787
|
+
msgid "Collection %(s)s wasn't found in database"
|
|
788
|
+
msgstr "Sammlung %(s)s wurde nicht in der Datenbank gefunden"
|
|
789
|
+
|
|
790
|
+
#: geovisio/web/excluded_areas.py:172 geovisio/web/excluded_areas.py:182
|
|
791
|
+
#: geovisio/web/excluded_areas.py:336 geovisio/web/excluded_areas.py:343
|
|
792
|
+
msgid "Impossible to create an Excluded Area"
|
|
793
|
+
msgstr "Es ist nicht möglich, einen Ausgeschlossenen Bereich zu erstellen"
|
|
794
|
+
|
|
795
|
+
#: geovisio/web/excluded_areas.py:272
|
|
796
|
+
msgid "You must be logged-in as admin to delete excluded areas"
|
|
797
|
+
msgstr ""
|
|
798
|
+
"Du musst als Administrator eingeloggt sein, um ausgeschlossene Bereiche zu "
|
|
799
|
+
"löschen"
|
|
800
|
+
|
|
801
|
+
#: geovisio/web/reports.py:286
|
|
802
|
+
msgid "Parameter for editing the Report should be a valid JSON"
|
|
803
|
+
msgstr ""
|
|
804
|
+
"Parameter für die Bearbeitung des Berichts sollte ein gültiges JSON sein"
|
|
Binary file
|