digital-cognition-co-in / DigitalCognition

DigitalCognition - Main repo - Core Product
3 stars 2 forks source link

Optimize method - def csv_to_psql(request): #32

Open RohitDhankar opened 4 years ago

RohitDhankar commented 4 years ago

Allocated to - @noob-master147 Collaborate with - @S-T-A-R-L-O-R-D

1/ As of now can upload CSV of max - 12 columns - needs to upload upto 99 Columns 2/ This is a very long method , does not follow the DRY ( Don Repeat Yourself ) principle , optimize this method , maybe required to create multiple methods .

Starts at - Line - https://github.com/digital-cognition-co-in/DigitalCognition/blob/97d80d279d8cf0cb5f85a2264bab8e2f23e7a44c/dc_dash/utily.py#L1492

Ends at - Line - https://github.com/digital-cognition-co-in/DigitalCognition/blob/97d80d279d8cf0cb5f85a2264bab8e2f23e7a44c/dc_dash/utily.py#L2098