Skip to content

Commit

Permalink
Fix bug in fetchindicators thermocap
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvan2006 committed Sep 11, 2024
1 parent a5c4e50 commit 9ad810d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/indicators/management/commands/fetchindicators.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def calculate_thermocap():
df.sort_index(inplace=True)

# Fetch block count data
block_count_source = DataSource.objects.get(name='BLOCK_COUNT')
block_count_source = DataSource.objects.get(url='BLOCK_COUNT')
block_count_data = DataSourceValue.objects.filter(data_source=block_count_source).order_by('date')

block_count_df = pd.DataFrame(list(block_count_data.values()))
Expand Down

0 comments on commit 9ad810d

Please sign in to comment.