Skip to content

Commit

Permalink
minor fixes (#287)
Browse files Browse the repository at this point in the history
* fix pdf display
* fix update_coldfront_objects
* add update_zones task
* change ifxbilling commit
  • Loading branch information
claire-peters authored Mar 22, 2024
1 parent 7fa05d4 commit 10dc339
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ARG IFXUSER_COMMIT=039a7a62cd67255bcb8992daec3b71bd433581b2
ARG IFXMAIL_CLIENT_COMMIT=8f728ff54441d2f2449fd3c31b75f0f77372b5f2
ARG FIINE_CLIENT_COMMIT=112858d4115ee6447ab9e396403fc5b48858cb70
ARG IFXEC_COMMIT=0c09c90890fb87d4db22c635a6c403c89e1a957f
ARG IFXBILLING_COMMIT=24bb3db35046ccaac42e27fe7e1799ff5697888e
ARG IFXBILLING_COMMIT=7521a286a2a5aa9a317b9586939a3d218b41a73d

RUN --mount=type=ssh pip install --upgrade pip && \
pip install git+ssh://[email protected]/harvardinformatics/ifxurls.git@${IFXURLS_COMMIT} && \
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0/css/bootstrap.css">
<script src="pdf.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.9.2/html2pdf.bundle.js"></script>
</head>

{% extends "common/base.html" %}
{% load crispy_forms_tags %}
{% load static %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,5 +139,5 @@ def handle(self, *args, **options):
push_quota_data(result_file)
data_pull = RedashDataPipeline()
allocationquerymatch_objs, user_models = data_pull.clean_collected_data()
data_pull.update_coldfront_objects(allocationquerymatch_objs, user_models)
data_pull.update_coldfront_objects(user_models)
return json.dumps(command_report, indent=2)
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ def handle(self, *args, **kwargs):
raise ValueError('unrecognized type argument')

allocationquerymatch_objs, user_models = data_pull.clean_collected_data()
data_pull.update_coldfront_objects(allocationquerymatch_objs, user_models)
data_pull.update_coldfront_objects(user_models)

logger.debug('pull_sf_push_cf complete')
3 changes: 3 additions & 0 deletions coldfront/plugins/sftocf/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@

def pull_sf_push_cf():
management.call_command('pull_sf_push_cf')

def update_zones():
management.call_command('update_zones')

0 comments on commit 10dc339

Please sign in to comment.