-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix hard-coded errors #78
Merged
Merged
Changes from 7 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
b706092
Fix linting
Aritra8438 a684bd6
Fix linting and fix errors
Aritra8438 9663870
Fix hard-coded errors
Aritra8438 b3b6045
Merge branch 'main' into fix-input-errors
Aritra8438 c4e0742
Merge branch 'main' into fix-input-errors
Aritra8438 a8bd105
Removed unused import
raisachatterjee 854702d
Added comment for disabling unused import for url_for
raisachatterjee 54fe03b
add newline
Aritra8438 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[MASTER] | ||
|
||
[MESSAGES CONTROL] | ||
disable = C0114, C0115, C0116, R0903 | ||
disable = C0114, C0115, C0116, R0903 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<!-- @format --> | ||
|
||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
|
@@ -144,13 +146,16 @@ <h3>Welcome to the API-documentation Page</h3> | |
| ||
<input type="text" v-model="tablePivot" /> | ||
</li> | ||
<br/> | ||
<br /> | ||
<li> | ||
<label>Query_type (either population, gdp_per_capita or forest_area) :</label> | ||
<label | ||
>Query_type (either population, gdp_per_capita or forest_area) | ||
:</label | ||
> | ||
| ||
<input type="text" v-model="tableQueryType" /> | ||
</li> | ||
<br/> | ||
<br /> | ||
</ul> | ||
<br /> | ||
<br /> | ||
|
@@ -176,8 +181,9 @@ <h3>Welcome to the API-documentation Page</h3> | |
<br /> | ||
<label | ||
><strong>Description</strong>: <br />This API returns a table of | ||
population, gdp_per_capita or forest area <br/> (in accordance with | ||
the query type) with countries and years as columns. <br /><br /> | ||
population, gdp_per_capita or forest area <br /> | ||
(in accordance with the query type) with countries and years as | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this because of prettify ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, |
||
columns. <br /><br /> | ||
<strong>Year parameter takes 3 types of inputs.</strong> | ||
<br /> | ||
• A single Number e.g. 2000. <br />• An array of numbers e.g. | ||
|
@@ -189,12 +195,9 @@ <h3>Welcome to the API-documentation Page</h3> | |
e.g. ["India","China"]<br /><br /><strong | ||
>Pivot takes two values.</strong | ||
><br />• Year <br />• Region <br />It determines the axes.<br /> | ||
<br /><strong> | ||
Query_type parameter takes three values | ||
</strong> | ||
<br /><strong> Query_type parameter takes three values </strong> | ||
<br />• population <br />• gdp_per_capita <br />• forest_area <br /> | ||
</label | ||
> | ||
</label> | ||
</div> | ||
<div class="flex-child" v-if="showTablePage"> | ||
<p>The response might take some time to show up.</p> | ||
|
@@ -242,9 +245,12 @@ <h3>Welcome to the API-documentation Page</h3> | |
| ||
<input type="text" v-model="jsonPivot" /> | ||
</li> | ||
<br/> | ||
<br /> | ||
<li> | ||
<label>Query_type (either population, gdp_per_capita or forest_area) :</label> | ||
<label | ||
>Query_type (either population, gdp_per_capita or forest_area) | ||
:</label | ||
> | ||
| ||
<input type="text" v-model="jsonQueryType" /> | ||
</li> | ||
|
@@ -273,8 +279,8 @@ <h3>Welcome to the API-documentation Page</h3> | |
<br /> | ||
<label | ||
><strong>Description</strong>: <br />This API returns json response | ||
of the query (population, gdp_per_capita <br/> or forest_area data | ||
depending on the query). <br /><br /> | ||
of the query (population, gdp_per_capita <br /> | ||
or forest_area data depending on the query). <br /><br /> | ||
<strong>Year parameter takes 3 types of inputs.</strong> | ||
<br /> | ||
• A single Number e.g. 2000. <br />• An array of numbers e.g. | ||
|
@@ -287,13 +293,11 @@ <h3>Welcome to the API-documentation Page</h3> | |
>Pivot takes two values.</strong | ||
><br />• None <br />• Year <br />• Region <br />It determines the | ||
type of JSON object <br />If Year or Region is selcted, they will be | ||
the key. | ||
<br /><br /><strong> | ||
Query_type parameter takes three values | ||
the key. <br /><br /><strong> | ||
Query_type parameter takes three values | ||
</strong> | ||
<br />• population <br />• gdp_per_capita <br />• forest_area <br /> | ||
</label | ||
> | ||
</label> | ||
</div> | ||
<div class="flex-child" v-if="showJsonPage"> | ||
<p>The response might take some time to show up.</p> | ||
|
@@ -336,13 +340,16 @@ <h3>Welcome to the API-documentation Page</h3> | |
<input type="text" v-model="graphYears" /> | ||
</li> | ||
<br /> | ||
|
||
<li> | ||
<label>Query_type (either population, gdp_per_capita or forest_area) :</label> | ||
<label | ||
>Query_type (either population, gdp_per_capita or forest_area) | ||
:</label | ||
> | ||
| ||
<input type="text" v-model="graphQueryType" /> | ||
</li> | ||
<br/> | ||
<br /> | ||
<li> | ||
<label>Theme:</label> | ||
| ||
|
@@ -354,7 +361,6 @@ <h3>Welcome to the API-documentation Page</h3> | |
| ||
<input type="text" v-model="graphPlot" /> | ||
</li> | ||
|
||
</ul> | ||
<br /> | ||
<br /> | ||
|
@@ -380,8 +386,9 @@ <h3>Welcome to the API-documentation Page</h3> | |
<br /> | ||
<label | ||
><strong>Description</strong>: <br />This API returns a graph of | ||
population, gdp_per_capita or <br/> forest_area depending on the | ||
type of query wrt countries and years<br /><br /> | ||
population, gdp_per_capita or <br /> | ||
forest_area depending on the type of query wrt countries and | ||
years<br /><br /> | ||
<strong>Year parameter takes 3 types of inputs.</strong> | ||
<br /> | ||
• A single Number e.g. 2000. <br />• An array of numbers e.g. | ||
|
@@ -393,9 +400,8 @@ <h3>Welcome to the API-documentation Page</h3> | |
e.g. ["India","China"]<br /><br /><strong | ||
>Plot parameter takes two values</strong | ||
> | ||
<br />• None<br />• bar<br /><br /> <br /><strong> | ||
Query_type parameter takes three values | ||
</strong> | ||
<br />• None<br />• bar<br /><br /> | ||
<br /><strong> Query_type parameter takes three values </strong> | ||
<br />• population <br />• gdp_per_capita <br />• forest_area <br /> | ||
<br /> | ||
<br /> | ||
|
@@ -441,9 +447,12 @@ <h3>Welcome to the API-documentation Page</h3> | |
| ||
<input type="text" v-model="statsNumber" /> | ||
</li> | ||
<br/> | ||
<br /> | ||
<li> | ||
<label>Query_type (either population, gdp_per_capita or forest_area) :</label> | ||
<label | ||
>Query_type (either population, gdp_per_capita or forest_area) | ||
:</label | ||
> | ||
| ||
<input type="text" v-model="statsQueryType" /> | ||
</li> | ||
|
@@ -487,16 +496,13 @@ <h3>Welcome to the API-documentation Page</h3> | |
</strong> | ||
<br /> | ||
<br /><br /> | ||
<strong> | ||
Query_type parameter takes three values | ||
</strong> | ||
<strong> Query_type parameter takes three values </strong> | ||
<br />• population <br />• gdp_per_capita <br />• forest_area <br /> | ||
</label> | ||
<br/><br/> | ||
<strong>Theme parameters take six values</strong> | ||
<br />• none<br />• fluorescent <br />• light<br />• blackpink | ||
<br />• dark<br />• aquamarine | ||
</label> | ||
<br /><br /> | ||
<strong>Theme parameters take six values</strong> | ||
<br />• none<br />• fluorescent <br />• light<br />• blackpink <br />• | ||
dark<br />• aquamarine | ||
</div> | ||
<div class="flex-child" v-if="showStatsPage"> | ||
<p>The response might take some time to show up.</p> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<!-- @format --> | ||
|
||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What has changed here?
If unwanted, remove it and then merge.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing was changed. I added W0611 and then removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then why git diff is showing changes?
Maybe you have added a new line? Can you remove it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I didn't add a new line.