mirror of
https://github.com/PokeAPI/pokeapi
synced 2024-11-26 21:30:19 +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
|