Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

save_attributes_to_db enhancements #12

Open
landam opened this issue Jun 5, 2019 · 0 comments
Open

save_attributes_to_db enhancements #12

landam opened this issue Jun 5, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@landam
Copy link
Contributor

landam commented Jun 5, 2019

attributes = {}
pOSIdent = ...
for child in ...:
   name = child...
   if name == 'pOSIdent':
       pOSIdent = ...text
   else:
       attributes[name] = ...text

for name, value in attributes.item():
   col_name = col_cov(name)
   if col_name not in cols:
       col_name = col_conv_dict(name)
   if col_name not in cols:
      raise ... vs. continue...
   ... update 
@landam landam added the enhancement New feature or request label Jun 5, 2019
@landam landam added this to the #3 milestone Jun 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants