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
|
||||
|
||||
|
||||
def _get_data():
|
||||
def _get_data() -> DTO:
|
||||
credentials: Credentials = Credentials.from_service_account_file('token.json', scopes=_SCOPES)
|
||||
|
||||
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"/>
|
||||
</head>
|
||||
<body>
|
||||
<div class="markdown-body">
|
||||
<h1>Reeds besteld</h1>
|
||||
<ol>
|
||||
{% for applicant in dto.applicants %}
|
||||
<li>{{ applicant }}</li>
|
||||
{% endfor %}
|
||||
</ol>
|
||||
<div class="markdown-body">
|
||||
<h1>Reeds besteld</h1>
|
||||
<ol>
|
||||
{% for applicant in dto.applicants %}
|
||||
<li>{{ applicant }}</li>
|
||||
{% endfor %}
|
||||
</ol>
|
||||
|
||||
<h1>Streeplijst</h1>
|
||||
<ul>
|
||||
{% for item in dto.items %}
|
||||
<li>{{ item.name }}: {{ item.amount }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<h1>Totaaloverzicht</h1>
|
||||
<ul>
|
||||
{% for order in dto.orders %}
|
||||
<li>
|
||||
{{ order.name }}
|
||||
<ul>
|
||||
{% for item in order.items %}
|
||||
<li>{{ item }}</li>
|
||||
{% endfor%}
|
||||
</ul>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
<h1>Streeplijst</h1>
|
||||
<ul>
|
||||
{% for item in dto.items %}
|
||||
<li>{{ item.name }}: {{ item.amount }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<h1>Totaaloverzicht</h1>
|
||||
<ul>
|
||||
{% for order in dto.orders %}
|
||||
<li>
|
||||
{{ order.name }}
|
||||
<ul>
|
||||
{% for item in order.items %}
|
||||
<li>{{ item }}</li>
|
||||
{% endfor%}
|
||||
</ul>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<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>
|
||||
</html>
|
||||
Reference in New Issue
Block a user