Completed
Pull Request — master (#164)
by Jace
02:42
created

main()   A

Complexity

Conditions 2

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %
Metric Value
cc 2
dl 0
loc 7
rs 9.4285
1
#!env/bin/python
2
# pylint: disable=no-member
3
4
import logging
5
6
from memegen.settings import ProdConfig
7
from memegen.app import create_app
8
9
10
def main():
11
    logging.info("Generating sample images...")
12
13
    app = create_app(ProdConfig)
14
15
    for template in app.template_service.all():
16
        app.image_service.create(template, template.sample_text)
17
18
19
if __name__ == '__main__':
20
    main()
21