|
|
@ -350,11 +350,11 @@ def old_variant(LSD, language): |
|
|
|
@frappe.whitelist(methods=['POST']) |
|
|
|
def variant(LSD, language, iid=None): |
|
|
|
date_format = "%Y-%m-%d %H:%M:%S.%f" |
|
|
|
if LSD != "": |
|
|
|
try: |
|
|
|
datetime.datetime.strptime(LSD, date_format) |
|
|
|
except: |
|
|
|
return {"status": 0, "error": " 'LSD' format error"} |
|
|
|
# if LSD != "null": |
|
|
|
# try: |
|
|
|
# datetime.datetime.strptime(LSD, date_format) |
|
|
|
# except: |
|
|
|
# return {"status": 0, "error": " 'LSD' format error"} |
|
|
|
publish_type = check_pub_type(iid) |
|
|
|
try: |
|
|
|
data = frappe.db.sql(f''' |
|
|
|