NOJIRA added runnen and autoformatted

This commit is contained in:
2021-09-15 12:46:48 +02:00
parent 60a6722169
commit 62a47d1666
3 changed files with 33 additions and 28 deletions

View File

@@ -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
View File

@@ -0,0 +1,2 @@
#!/bin/bash
functions_framework --target process

View File

@@ -5,7 +5,7 @@
<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 %}
@@ -32,6 +32,9 @@
</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>