質問編集履歴

1

python コードを追加

2020/02/06 06:13

投稿

spellbound
spellbound

スコア190

test CHANGED
File without changes
test CHANGED
@@ -125,3 +125,21 @@
125
125
  }
126
126
 
127
127
  ```
128
+
129
+
130
+
131
+ ```python
132
+
133
+ class BaseViewModel(object):
134
+
135
+ @property
136
+
137
+ def isGuestJson(self) -> str:
138
+
139
+ if g.user.isMember:
140
+
141
+ return json.dumps(False)
142
+
143
+ return json.dumps(True)
144
+
145
+ ```