update fonctionnement init package

This commit is contained in:
Colas Geier 2022-06-17 13:39:25 +02:00
parent 52293d614b
commit c522a6b586
2 changed files with 65 additions and 66 deletions

View File

@ -1,9 +1,9 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# -*- coding: UTF-8 -*- # -*- coding: UTF-8 -*-
from .zh import * from .zh import zh,ref_hab, ref_hydro
from .bilan import * from .bilan import *
from .update import update from .update import update_to_sql,update_ref
from .pers import pers from .pers import pers
from .sites import sites from .sites import sites
from .ps import * from .ps import *

View File

@ -230,12 +230,11 @@ class update_ref_table:
class update: def update_ref(file, table, schema=None, update=False):
def update_ref(file, table, schema=None, update=False):
update_ref_table(file, table, schema, update) update_ref_table(file, table, schema, update)
def update_to_sql(df, con, table_name, schema_name, key_name): def update_to_sql(df, con, table_name, schema_name, key_name):
from sys import exit from sys import exit
a = [] a = []