Example #1
0
def setup(): # Stuff that should be run once.
    html.init_templates()

    create.create_image_table() # Ensures image table exists.

    if retrieve.get_image_count() == 0:
        some_data = open('imageapp/dice.png', 'rb').read()
        image.add_image(some_data, 'png', 'Dice', 'Some dice!')
Example #2
0
def get_image_count():
    return retrieve.get_image_count()