Skip to content

Commit 3706921

Browse files
committed
Added frequency field to graphql query
1 parent 3f43fe5 commit 3706921

File tree

3 files changed

+29
-2
lines changed

3 files changed

+29
-2
lines changed

docs/GraphqlQuestionDetail.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
77
**question_frontend_id** | **str** | | [optional]
88
**bound_topic_id** | **str** | | [optional]
99
**title** | **str** | | [optional]
10+
**frequency** | **float** | | [optional]
1011
**content** | **str** | | [optional]
1112
**translated_title** | **str** | | [optional]
1213
**translated_content** | **str** | | [optional]

leetcode/models/graphql_question_detail.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ class GraphqlQuestionDetail(object):
3232
'question_frontend_id': 'str',
3333
'bound_topic_id': 'str',
3434
'title': 'str',
35+
'frequency': 'float',
3536
'content': 'str',
3637
'translated_title': 'str',
3738
'translated_content': 'str',
@@ -66,6 +67,7 @@ class GraphqlQuestionDetail(object):
6667
'question_frontend_id': 'questionFrontendId',
6768
'bound_topic_id': 'boundTopicId',
6869
'title': 'title',
70+
'frequency': 'frequency',
6971
'content': 'content',
7072
'translated_title': 'translatedTitle',
7173
'translated_content': 'translatedContent',
@@ -95,12 +97,13 @@ class GraphqlQuestionDetail(object):
9597
'code_definition': 'codeDefinition'
9698
}
9799

98-
def __init__(self, question_id=None, question_frontend_id=None, bound_topic_id=None, title=None, content=None, translated_title=None, translated_content=None, is_paid_only=None, difficulty=None, likes=None, dislikes=None, is_liked=None, similar_questions=None, contributors=None, lang_to_valid_playground=None, topic_tags=None, company_tag_stats=None, code_snippets=None, stats=None, hints=None, solution=None, status=None, sample_test_case=None, judger_available=None, judge_type=None, mysql_schemas=None, enable_run_code=None, enable_test_mode=None, env_info=None, meta_data=None, code_definition=None): # noqa: E501
100+
def __init__(self, question_id=None, question_frontend_id=None, bound_topic_id=None, title=None, frequency=None, content=None, translated_title=None, translated_content=None, is_paid_only=None, difficulty=None, likes=None, dislikes=None, is_liked=None, similar_questions=None, contributors=None, lang_to_valid_playground=None, topic_tags=None, company_tag_stats=None, code_snippets=None, stats=None, hints=None, solution=None, status=None, sample_test_case=None, judger_available=None, judge_type=None, mysql_schemas=None, enable_run_code=None, enable_test_mode=None, env_info=None, meta_data=None, code_definition=None): # noqa: E501
99101
"""GraphqlQuestionDetail - a model defined in Swagger""" # noqa: E501
100102
self._question_id = None
101103
self._question_frontend_id = None
102104
self._bound_topic_id = None
103105
self._title = None
106+
self._frequency = None
104107
self._content = None
105108
self._translated_title = None
106109
self._translated_content = None
@@ -137,6 +140,8 @@ def __init__(self, question_id=None, question_frontend_id=None, bound_topic_id=N
137140
self.bound_topic_id = bound_topic_id
138141
if title is not None:
139142
self.title = title
143+
if frequency is not None:
144+
self.frequency = frequency
140145
if content is not None:
141146
self.content = content
142147
if translated_title is not None:
@@ -276,6 +281,27 @@ def title(self, title):
276281

277282
self._title = title
278283

284+
@property
285+
def frequency(self):
286+
"""Gets the frequency of this GraphqlQuestionDetail. # noqa: E501
287+
288+
289+
:return: The frequency of this GraphqlQuestionDetail. # noqa: E501
290+
:rtype: float
291+
"""
292+
return self._frequency
293+
294+
@frequency.setter
295+
def frequency(self, frequency):
296+
"""Sets the frequency of this GraphqlQuestionDetail.
297+
298+
299+
:param frequency: The frequency of this GraphqlQuestionDetail. # noqa: E501
300+
:type: float
301+
"""
302+
303+
self._frequency = frequency
304+
279305
@property
280306
def content(self):
281307
"""Gets the content of this GraphqlQuestionDetail. # noqa: E501

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from setuptools import find_packages, setup # noqa: H301
1313

1414
NAME = "python-leetcode"
15-
VERSION = "1.0.5"
15+
VERSION = "1.0.6"
1616

1717
with open("README.md") as readme:
1818
DESCRIPTION = readme.read()

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy