Skip to content

Commit

Permalink
Merge commit '64219f5e10100637109ff2569fda71b716027eb3'
Browse files Browse the repository at this point in the history
  • Loading branch information
fryarludwig committed Dec 22, 2017
2 parents 12b2d86 + 64219f5 commit 86e484d
Show file tree
Hide file tree
Showing 28 changed files with 963 additions and 850 deletions.
7 changes: 7 additions & 0 deletions src/WebSDL/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,3 +164,10 @@
EMAIL_HOST = EMAIL_SERVER[0] if isinstance(EMAIL_SERVER, tuple) else EMAIL_SERVER

DATETIME_FORMAT = "N j, Y, H:m"

INFLUX_URL_QUERY = data['influx_query']

# This data period is measured in days
SENSOR_DATA_PERIOD = data['sensor_data_period'] if 'sensor_data_period' in data else '2'

TSA_URL = data['tsa_url'] if 'tsa_url' in data else ''
Empty file.
18 changes: 9 additions & 9 deletions src/dataloader/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1179,8 +1179,8 @@ class Meta:


class RelatedFeature(ObjectRelation):
sampling_feature = models.ForeignKey('SamplingFeature', related_name='related_features__sampling_feature', db_column='samplingfeatureid')
related_feature = models.ForeignKey('SamplingFeature', related_name='related_features__related_feature', db_column='relatedfeatureid')
sampling_feature = models.ForeignKey('SamplingFeature', related_name='related_features_sampling_feature', db_column='samplingfeatureid')
related_feature = models.ForeignKey('SamplingFeature', related_name='related_features_related_feature', db_column='relatedfeatureid')
spatial_offset = models.ForeignKey('SpatialOffset', db_column='spatialoffsetid', blank=True, null=True)

def __repr__(self):
Expand Down Expand Up @@ -1231,8 +1231,8 @@ class Meta:


class RelatedModel(ObjectRelation):
model = models.ForeignKey('Model', related_name='related_model__model', db_column='modelid')
related_model = models.ForeignKey('Model', related_name='related_model__related_model', db_column='relatedmodelid')
model = models.ForeignKey('Model', related_name='related_model_model', db_column='modelid')
related_model = models.ForeignKey('Model', related_name='related_model_related_model', db_column='relatedmodelid')

def __repr__(self):
return "<RelatedModel('%s', Model['%s', '%s'], Model['%s', '%s'])>" % (
Expand Down Expand Up @@ -1805,8 +1805,8 @@ class Meta:


class RelatedAnnotation(ObjectRelation):
annotation = models.ForeignKey('Annotation', related_name='related_annonation__annotation', db_column='annotationid')
related_annotation = models.ForeignKey('Annotation', related_name='related_annotation__related_annontation', db_column='relatedannotationid')
annotation = models.ForeignKey('Annotation', related_name='related_annonation_annotation', db_column='annotationid')
related_annotation = models.ForeignKey('Annotation', related_name='related_annotation_related_annontation', db_column='relatedannotationid')

def __repr__(self):
return "<RelatedAnnotation('%s', Annotation['%s', '%s'], '%s', Annotation['%s', '%s'])>" % (
Expand All @@ -1819,8 +1819,8 @@ class Meta:


class RelatedDataSet(ObjectRelation):
data_set = models.ForeignKey('DataSet', related_name='related_dataset__dataset', db_column='datasetid')
related_data_set = models.ForeignKey('DataSet', related_name='related_dataset__related_dataset', db_column='relateddatasetid')
data_set = models.ForeignKey('DataSet', related_name='related_dataset_dataset', db_column='datasetid')
related_data_set = models.ForeignKey('DataSet', related_name='related_dataset_related_dataset', db_column='relateddatasetid')
version_code = models.CharField(db_column='versioncode', blank=True, max_length=50)

def __repr__(self):
Expand All @@ -1835,7 +1835,7 @@ class Meta:

class RelatedResult(ObjectRelation):
result = models.ForeignKey('Result', db_column='resultid')
related_result = models.ForeignKey('Result', related_name='related_result__related_result', db_column='relatedresultid')
related_result = models.ForeignKey('Result', related_name='related_result_related_result', db_column='relatedresultid')
version_code = models.CharField(db_column='versioncode', blank=True, max_length=50)
related_result_sequence_number = models.IntegerField(db_column='relatedresultsequencenumber', blank=True, null=True)

Expand Down
Loading

0 comments on commit 86e484d

Please sign in to comment.