Skip to content

Commit

Permalink
Updating shit
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelnachbar committed Mar 20, 2018
1 parent 6e7e39d commit 3cd5f4d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cutter/tasks.py
Expand Up @@ -247,7 +247,7 @@ def output_turfs(form):
#Convert the html file into an image file
make_img_file(cluster,folder_name)
#Put the image file onto the PDF
add_img(pdf,cluster,folder_name,w=195)
add_img(pdf,cluster,folder_name,w=150)


#Save the PDF
Expand Down
6 changes: 3 additions & 3 deletions cutter/utilities.py
Expand Up @@ -616,18 +616,18 @@ def make_html_file(df,folder):
def text_page(pdf,cluster,street_list,doors,voters):
#Add a page
pdf.add_page()
pdf.set_font('Arial', 'B', 50)
pdf.set_font('Arial', 'B', 40)
#Write the team name (based on cluster #)
pdf.cell(30, 20, 'Team # ' + str(cluster),ln=2)
pdf.set_font('Arial', 'B', 24)
#Specify the # of doors and voters
pdf.cell(20, 10, str(doors) + " registered doors",ln=2)
pdf.cell(20, 10, str(voters) + " registered voters",ln=2)
pdf.ln(5)
pdf.set_font('Arial', 'B', 14)
pdf.set_font('Arial', 'B', 12)
#Write each street in the turf
for i in street_list:
pdf.cell(16, 8, i,ln=2)
pdf.cell(14, 8, i,ln=2)
#Make dots to specify what each means
pdf.set_fill_color(r = 0)
pdf.ellipse(pdf.get_x() + 3,pdf.get_y() + 3,3,3,style='F')
Expand Down

0 comments on commit 3cd5f4d

Please sign in to comment.