MeanPug / django-gsheets

Django app for keeping models and google sheets synced
https://www.meanpug.com/sync-data-to-and-from-google-sheets-with-django-gsheets/
MIT License
60 stars 25 forks source link

Is it possible to define from which row you want to start reading/syncing data? #16

Open esirK opened 3 years ago

esirK commented 3 years ago

Firstly, thank you for the awesome package 😎. Right now, when pulling data from a Google sheet, it always starts from the first row; Is it possible to specify which row it should start pulling data from (Ability to specify from which rows I want to keep the sheet in sync)?

I have seen using data_range but I have a situation where A1 is the only row that contains field names that match model fields. Is it possible to define something like data_range = 'A7:Z' where A7 is just a row that has data?

esirK commented 3 years ago

Hey, @steinbachr any comments on the above?

steinbachr commented 3 years ago

hi @esirK, that isn't currently a capability, but wouldn't think it too difficult to add. I'm not sure when I'll be able to take a look, but would welcome the PR if you have some time.

esirK commented 3 years ago

hi @esirK, that isn't currently a capability, but wouldn't think it too difficult to add. I'm not sure when I'll be able to take a look, but would welcome the PR if you have some time.

Sure @steinbachr with a small guidance I can definitely create a PR.