Compare commits

..

No commits in common. "0b15a40daf95dc2cb8fe3c2b756d7412db545302" and "8ff434af75c9b1f045cf58a1203a5e2206a05807" have entirely different histories.

2 changed files with 0 additions and 23 deletions

View File

@ -22,11 +22,6 @@
background-color: lightblue;
}
#question {
font-size: larger;
font-weight: bolder;
}
ul.ready li {
border: 1px solid;
}

18
poll
View File

@ -1,18 +0,0 @@
#!/usr/bin/python3
import argparse
import requests
import os
import sys
URL = 'http://localhost:3000'
PASSWORD = os.getenv("PASSWORD")
if len(sys.argv) < 3:
print("Usage: poll <QUESTION> [ANSWER 1] [ANSWER 2] ...")
sys.exit(1)
data = {"question": sys.argv[1], "choices": [sys.argv[x] for x in range(2,len(sys.argv))]}
requests.post(URL + "/choices", json = data, headers = {'Authorization': f"Bearer {PASSWORD}"}).raise_for_status()