Skip to content

Commit

Permalink
update warning for lastUpdateTime to a deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
alifeee committed Oct 19, 2023
1 parent 36d4e51 commit 195543d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions gspread/spreadsheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,8 @@ def lastUpdateTime(self):
Only updated on initialisation.
For actual last updated time, use get_lastUpdateTime()."""
warnings.warn(
"""
This is only updated on initialisation and is probably outdated by the time you use it.
For an up to date last updated time, use get_lastUpdateTime().
"""
"worksheet.lastUpdateTime is deprecated, please use worksheet.get_lastUpdateTime()",
category=DeprecationWarning,
)
if "modifiedTime" not in self._properties:
self.update_drive_metadata()
Expand Down

0 comments on commit 195543d

Please sign in to comment.