Scintilla templates for new launch. Trying to clean up Zenjob's workflow.

This commit is contained in:
Norm Rasmussen
2025-05-07 16:38:56 -04:00
parent 48d9a88181
commit 59707596c2
5 changed files with 183 additions and 13 deletions

View File

@ -0,0 +1,21 @@
import requests
import json
with open('./sample_payload.json', 'r') as file:
input = json.load(file)
def main(input):
# input = input['input']
for items in input['payload']['data']['included']:
if items['type'] == 'quizzes':
try:
if items['name'] == 'Deutsch Einstufungstest':
print('quiz!')
except TypeError as h:
print(h)
elif items['type'] == 'people':
print('people')
if __name__ == "__main__":
main(input)