Commit 37a0b573 by aa.gusti

perbaikan dmy minor

1 parent 534d364b
...@@ -144,7 +144,7 @@ def get_params(params, alternate=None): ...@@ -144,7 +144,7 @@ def get_params(params, alternate=None):
def devel(): def devel():
settings = get_settings() settings = get_settings()
is_devel = 'devel' in settings and settings['devel'] and True or False is_devel = 'devel' in settings and settings['devel'] and True or False
print("DEBUG>>", is_devel) log.debug(f"Devel: {is_devel}")
return is_devel return is_devel
...@@ -237,6 +237,8 @@ def dmy(tgl): ...@@ -237,6 +237,8 @@ def dmy(tgl):
""" """
Conversi dari date to string Conversi dari date to string
""" """
if not tgl:
return "00-00-0000"
return tgl.strftime('%d-%m-%Y') return tgl.strftime('%d-%m-%Y')
......
...@@ -277,10 +277,13 @@ def nop_to_id(row): ...@@ -277,10 +277,13 @@ def nop_to_id(row):
def query_nop(table): def query_nop(table):
return func.concat(table.kd_propinsi, '.', table.kd_dati2, '-', return func.concat(table.kd_propinsi, func.concat('.',
table.kd_kecamatan,'.',table.kd_kelurahan, '-', func.concat(table.kd_dati2, func.concat('-',
table.kd_blok, '.',table.no_urut, '-', func.concat(table.kd_kecamatan, func.concat('.',
table.kd_jns_op) func.concat(table.kd_kelurahan, func.concat('-',
func.concat(table.kd_blok, func.concat('.',
func.concat(table.no_urut, func.concat('-',
table.kd_jns_op))))))))))))
# JEnis REstitusi Kompensasi # JEnis REstitusi Kompensasi
......
setuptools>=40.8.0
pip~=18.1
WebOb>=1.8.7
certifi>=2021.5.30
pyramid>=2.0
pyramid_rpc
venusian>=3.0.0
translationstring>=1.4
plaster>=1.0
hupper>=1.10.3
urllib3>=1.26.6
idna>=3.2
SQLAlchemy~=1.4.25
requests~=2.26.0
colander~=1.8.3
deform~=2.0.15
transaction~=3.0.1
python-dateutil~=2.8.2
google~=3.0.0
alembic~=1.7.3
pytz~=2021.3
py~=1.10.0
colorama~=0.4.4
Pillow~=8.3.2
lxml~=4.6.3
beautifulsoup4~=4.10.0
soupsieve~=2.2.1
wheel~=0.37.0
rsa~=4.7.2
pyasn1~=0.4.8
attrs~=21.2.0
Mako~=1.1.5
Babel~=2.9.1
Beaker~=1.11.0
Pygments~=2.10.0
MarkupSafe~=2.0.1
six~=1.16.0
Genshi~=0.7.5
toml~=0.10.2
Chameleon~=3.9.1
peppercorn~=0.6
iso8601~=0.1.16
cachetools~=4.2.4
google-api-python-client~=2.23.0
pytest~=6.2.5
pluggy~=1.0.0
iniconfig~=1.1.1
passlib~=1.7.4
greenlet~=1.1.2
pyparsing~=2.4.7
httplib2~=0.19.1
icecream~=2.1.1
executing~=0.8.2
paginate~=0.5.6
waitress~=2.0.0
asttokens~=2.0.5
uritemplate~=3.0.1
zipp~=3.6.0
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!