mirror of
https://github.com/PokeAPI/pokeapi
synced 2024-11-26 05:10:21 +00:00
7 lines
169 B
Python
Executable file
7 lines
169 B
Python
Executable file
from __future__ import unicode_literals
|
|
import time
|
|
|
|
|
|
def unique_filename(instance, old_filename):
|
|
filename = str(time.time()) + '.png'
|
|
return 'img/' + filename
|