Skip to content

Commit

Permalink
remove arcgis
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita Shamaev committed Nov 26, 2022
1 parent c9981db commit 9562cd4
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 183 deletions.
5 changes: 0 additions & 5 deletions arcgis/README.md

This file was deleted.

Empty file removed arcgis/__init__.py
Empty file.
10 changes: 0 additions & 10 deletions arcgis/admin.py

This file was deleted.

6 changes: 0 additions & 6 deletions arcgis/apps.py

This file was deleted.

49 changes: 0 additions & 49 deletions arcgis/migrations/0001_initial.py

This file was deleted.

Empty file removed arcgis/migrations/__init__.py
Empty file.
95 changes: 0 additions & 95 deletions arcgis/models.py

This file was deleted.

7 changes: 0 additions & 7 deletions arcgis/tasks.py

This file was deleted.

1 change: 0 additions & 1 deletion dtb/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@

# local apps
'users.apps.UsersConfig',
'arcgis',
]

MIDDLEWARE = [
Expand Down
10 changes: 0 additions & 10 deletions users/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from telegram import Update
from telegram.ext import CallbackContext

from dtb.settings import DEBUG
from tgbot.handlers.utils.info import extract_user_data_from_update
from utils.models import CreateUpdateTracker, nb, CreateTracker, GetOrNoneManager

Expand Down Expand Up @@ -84,12 +83,3 @@ class Location(CreateTracker):

def __str__(self):
return f"user: {self.user}, created at {self.created_at.strftime('(%H:%M, %d %B %Y)')}"

def save(self, *args, **kwargs):
super(Location, self).save(*args, **kwargs)
# Parse location with arcgis
from arcgis.tasks import save_data_from_arcgis
if DEBUG:
save_data_from_arcgis(latitude=self.latitude, longitude=self.longitude, location_id=self.pk)
else:
save_data_from_arcgis.delay(latitude=self.latitude, longitude=self.longitude, location_id=self.pk)

0 comments on commit 9562cd4

Please sign in to comment.