|
|
@ -12,8 +12,8 @@ def get_remote_addr(): |
|
|
|
|
|
|
|
|
|
|
|
def flash_result(*result): |
|
|
|
def flash_result(*result): |
|
|
|
if result[0] is not None: |
|
|
|
if result[0] is not None: |
|
|
|
if isinstance(result, list): |
|
|
|
if isinstance(result[0], list): |
|
|
|
flash(*result) |
|
|
|
flash(*result[0]) |
|
|
|
else: |
|
|
|
else: |
|
|
|
flash(result) |
|
|
|
flash(result) |
|
|
|
|
|
|
|
|
|
|
|