Skip to content

Commit

Permalink
Move basedata inside the plugin directory
Browse files Browse the repository at this point in the history
  • Loading branch information
marioba committed Aug 20, 2021
1 parent 171b6c4 commit c1914d4
Show file tree
Hide file tree
Showing 42 changed files with 3 additions and 3 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions comptages/datamodel/management/commands/importdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

from ...models import (
Section, Lane, Brand, Category, Class, ClassCategory, Device, Installation,
Lane, Model, ModelClass, SensorType, SensorTypeClass,
SensorTypeInstallation, SensorTypeModel)
Model, ModelClass, SensorType, SensorTypeClass, SensorTypeInstallation,
SensorTypeModel)

logger = logging.getLogger("main")

Expand Down Expand Up @@ -55,7 +55,7 @@ def handle(self, *args, **options):
print("🚓")

def file_path(self, filename):
return os.path.join(os.path.dirname(__file__),'..','..','..','..','db',filename)
return os.path.join(os.path.dirname(__file__),'..','..','..','basedata',filename)

def import_sections(self, csv_file):
print("Importing sections...")
Expand Down

0 comments on commit c1914d4

Please sign in to comment.