Skip to content

Commit

Permalink
fixed an error
Browse files Browse the repository at this point in the history
  • Loading branch information
sudhnsh committed Aug 31, 2021
1 parent 5231147 commit 820fea9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions lib/ccuserapi.dart
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ class Contest {

String name;
int rating;
int globalRank;
int countryRank;
dynamic globalRank;
dynamic countryRank;

factory Contest.fromJson(Map<String, dynamic> json) => Contest(
name: json["name"],
Expand Down
12 changes: 6 additions & 6 deletions lib/pages/analytics.dart
Original file line number Diff line number Diff line change
Expand Up @@ -343,15 +343,15 @@ class _RatingChangeState extends State<RatingChange> {
.data
.result
.length -
2]
1]
.newRating) -
(snapshot
.data
.result[snapshot
.data
.result
.length -
1]
2]
.oldRating)) /
2)
.toStringAsFixed(2),
Expand Down Expand Up @@ -398,16 +398,16 @@ class _RatingChangeState extends State<RatingChange> {
.data
.result
.length -
2]
.oldRating) -
1]
.newRating) -
(snapshot
.data
.result[snapshot
.data
.result
.length -
1]
.newRating)) /
2]
.oldRating)) /
2)
.toStringAsFixed(2),
style: TextStyle(
Expand Down
8 changes: 4 additions & 4 deletions lib/pages/ccanalytic.dart
Original file line number Diff line number Diff line change
Expand Up @@ -357,15 +357,15 @@ class _RatingChangeState extends State<RatingChange> {
.data
.contestRatings
.length -
1]
2]
.rating) -
int.parse(snapshot
.data
.contestRatings[snapshot
.data
.contestRatings
.length -
2]
1]
.rating))) /
2)
.toStringAsFixed(2),
Expand Down Expand Up @@ -414,15 +414,15 @@ class _RatingChangeState extends State<RatingChange> {
.data
.contestRatings
.length -
1]
2]
.rating) -
int.parse(snapshot
.data
.contestRatings[snapshot
.data
.contestRatings
.length -
2]
1]
.rating))) /
2)
.toStringAsFixed(2),
Expand Down

0 comments on commit 820fea9

Please sign in to comment.