Files
vote/seed-data/make-data.py
Scaffolder 3f7396407b
Some checks failed
CI Pipeline / Build and Test (push) Has been cancelled
Build and Publish TechDocs / build-and-publish (push) Has been cancelled
initial commit
Change-Id: Ia748646eaf5c18f44eb5b147ff577d0d5ee844e8
2026-03-23 17:40:04 +00:00

14 lines
345 B
Python

# this creates urlencode-friendly files without EOL
import urllib.parse
outfile = open('postb', 'w')
params = ({ 'vote': 'b' })
encoded = urllib.parse.urlencode(params)
outfile.write(encoded)
outfile.close()
outfile = open('posta', 'w')
params = ({ 'vote': 'a' })
encoded = urllib.parse.urlencode(params)
outfile.write(encoded)
outfile.close()