Skip to content

Commit f9812fc

Browse files
authored
Merge pull request #68 from seatable/feat-content-date-key
feat: content data key
2 parents 76bac8a + 3c1a968 commit f9812fc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

seatable_api/context.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,9 @@ def current_table(self):
4848
def current_user_id(self):
4949
return context_data.get('current_user_id')
5050

51+
@need_data
52+
def get_setting_by_key(self, key):
53+
return context_data.get(key)
54+
5155

5256
context = Context()

0 commit comments

Comments
 (0)