Skip to content

Commit 327deb7

Browse files
committed
Merge branch 'master' of github.com:srnd/posters
2 parents ef9ead9 + e7ea62c commit 327deb7

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
# posters
2-
It makes posters
3-
posters.srnd.org
1+
# Posters
2+
Live @ [posters.codeday.org](https://posters.codeday.org)
3+
4+
This system automatically generates posters for CodeDay events, using data from clear. To add more templates, please see the [template repo](https://github.com/srnd/CodeDayPosterTemplates/)

api/generator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def __init__(self, data, promo=None, promoFor=None):
2828
self.year = self.start.strftime('%Y')
2929
self.webname = self.current_event['webname']
3030
self.url = self.current_event['webname']
31+
self.name = self.current_event['region_name']
3132

3233
def get_cache(self, file_format, template_name='', full=True):
3334
basedir = os.path.dirname(os.path.realpath(__file__)) if full else ''
@@ -83,7 +84,7 @@ def make_poster_png(self, template_name):
8384
f_out = self.get_cache('png', template_name)
8485

8586
with open(os.devnull, 'wb') as devnull:
86-
subprocess.check_call(['inkscape', '-z', '-w', '600', '-f', f_in, '-e', f_out], stdout=devnull, stderr=subprocess.STDOUT)
87+
subprocess.check_call(['inkscape', '-z', '-f', f_in, '-e', f_out], stdout=devnull, stderr=subprocess.STDOUT)
8788

8889
def make_posters(self,templates=env.list_templates()):
8990
for template_name in templates:

0 commit comments

Comments
 (0)