-
Notifications
You must be signed in to change notification settings - Fork 54
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
Audit Template Report Submission Endpoint #4411
Conversation
Label error. Requires at least 1 of: Feature, Bug, Enhancement, Maintenance, Documentation, Performance, Do not publish. Found: |
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.
let me test this one... give me a couple days.
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.
@@ -161,7 +196,7 @@ def build_xml(self, state, report_type, display_field): | |||
view = state.propertyview_set.first() | |||
|
|||
gfa = state.gross_floor_area | |||
if type(gfa) == int: | |||
if isinstance(gfa, int): |
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.
silly python thing...
@@ -133,7 +133,7 @@ def health_check(request): | |||
celery_status = False | |||
|
|||
try: | |||
redis_status = not cache.has_key('redis-ping') | |||
redis_status = 'redis-ping' not in cache |
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.
autopep
caught this...
@@ -17,13 +17,57 @@ | |||
|
|||
|
|||
class AuditTemplateViewSet(viewsets.ViewSet, OrgMixin): | |||
@swagger_auto_schema(manual_parameters=[ | |||
AutoSchemaHelper.query_org_id_field(), | |||
AutoSchemaHelper.base_field( |
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.
my few updates to have swagger expose the correct info.
New endpoint to retrieve an Audit Template report submission (either in PDF or XML format)
For 179D.