-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flowmachine unique location count #979
Conversation
…both location and metric
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of tweaks, otherwise this looks good. Thanks!
flowclient/flowclient/client.py
Outdated
|
||
|
||
def unique_location_counts( | ||
*, start_date, end_date, aggregation_unit, subscriber_subset=None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These need to be type annotated.
@@ -134,13 +134,13 @@ def _make_query(self): | |||
get_columns_for_level(self.ul.level, self.ul.column_name) | |||
) | |||
sql = """ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we change this to an f-string while we're here?
Codecov Report
@@ Coverage Diff @@
## master #979 +/- ##
==========================================
+ Coverage 93.33% 93.36% +0.02%
==========================================
Files 136 137 +1
Lines 6861 6892 +31
Branches 697 699 +2
==========================================
+ Hits 6404 6435 +31
+ Misses 333 332 -1
- Partials 124 125 +1
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #979 +/- ##
===========================================
+ Coverage 67.01% 93.36% +26.35%
===========================================
Files 136 137 +1
Lines 6861 6892 +31
Branches 697 699 +2
===========================================
+ Hits 4598 6435 +1837
+ Misses 2109 332 -1777
+ Partials 154 125 -29
Continue to review full report at Codecov.
|
Closes #949
I have:
Unique location count was added to FlowAPI's joined_spatial_aggregate endpoint.