Conditions | 5 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | #!env/bin/python |
||
10 | def main(): |
||
11 | log.info("Generating sample images...") |
||
12 | |||
13 | app = create_app(ProductionConfig) |
||
14 | |||
15 | with app.app_context(): |
||
16 | |||
17 | for template in app.template_service.all(): |
||
18 | for text in [Text("_"), template.sample_text]: |
||
19 | for watermark in ["", "memegen.link"]: |
||
20 | app.image_service.create(template, text, |
||
21 | watermark=watermark) |
||
22 | |||
26 |