NOJIRA added runnen and autoformatted
This commit is contained in:
2
main.py
2
main.py
@@ -98,7 +98,7 @@ def _anonymize_name(name: str) -> str:
|
|||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
||||||
def _get_data():
|
def _get_data() -> DTO:
|
||||||
credentials: Credentials = Credentials.from_service_account_file('token.json', scopes=_SCOPES)
|
credentials: Credentials = Credentials.from_service_account_file('token.json', scopes=_SCOPES)
|
||||||
|
|
||||||
service = build('sheets', 'v4', credentials=credentials)
|
service = build('sheets', 'v4', credentials=credentials)
|
||||||
|
|||||||
2
run-locally.sh
Executable file
2
run-locally.sh
Executable file
@@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
functions_framework --target process
|
||||||
@@ -5,33 +5,36 @@
|
|||||||
<link rel="stylesheet" href="https://unpkg.com/github-markdown-css@4.0.0/github-markdown.css"/>
|
<link rel="stylesheet" href="https://unpkg.com/github-markdown-css@4.0.0/github-markdown.css"/>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="markdown-body">
|
<div class="markdown-body">
|
||||||
<h1>Reeds besteld</h1>
|
<h1>Reeds besteld</h1>
|
||||||
<ol>
|
<ol>
|
||||||
{% for applicant in dto.applicants %}
|
{% for applicant in dto.applicants %}
|
||||||
<li>{{ applicant }}</li>
|
<li>{{ applicant }}</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
<h1>Streeplijst</h1>
|
<h1>Streeplijst</h1>
|
||||||
<ul>
|
<ul>
|
||||||
{% for item in dto.items %}
|
{% for item in dto.items %}
|
||||||
<li>{{ item.name }}: {{ item.amount }}</li>
|
<li>{{ item.name }}: {{ item.amount }}</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
<h1>Totaaloverzicht</h1>
|
<h1>Totaaloverzicht</h1>
|
||||||
<ul>
|
<ul>
|
||||||
{% for order in dto.orders %}
|
{% for order in dto.orders %}
|
||||||
<li>
|
<li>
|
||||||
{{ order.name }}
|
{{ order.name }}
|
||||||
<ul>
|
<ul>
|
||||||
{% for item in order.items %}
|
{% for item in order.items %}
|
||||||
<li>{{ item }}</li>
|
<li>{{ item }}</li>
|
||||||
{% endfor%}
|
{% endfor%}
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
<p> Heb je feedback?
|
||||||
|
<a href="https://docs.google.com/forms/d/e/1FAIpQLSddGpp9kbvW9QfLVATOM3pJqhq1ci0_gdZdpGmXmkPRMoiLEw/viewform?usp=sf_link"
|
||||||
|
title="hier" target="_blank">Klik hier!</a></p>
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Reference in New Issue
Block a user