Skip to content

Commit

Permalink
Fixed bug in year button 2019 and 2020 of GSoD
Browse files Browse the repository at this point in the history
  • Loading branch information
ShashankDeepak committed Jun 26, 2024
1 parent fa4f459 commit 44db16d
Show file tree
Hide file tree
Showing 13 changed files with 126 additions and 163 deletions.
Binary file removed .gradle/7.5.1/checksums/checksums.lock
Binary file not shown.
Binary file not shown.
Empty file.
Binary file removed .gradle/7.5.1/executionHistory/executionHistory.bin
Binary file not shown.
Binary file removed .gradle/7.5.1/executionHistory/executionHistory.lock
Binary file not shown.
Binary file removed .gradle/7.5.1/fileChanges/last-build.bin
Binary file not shown.
Binary file removed .gradle/7.5.1/fileHashes/fileHashes.bin
Binary file not shown.
Binary file removed .gradle/7.5.1/fileHashes/fileHashes.lock
Binary file not shown.
Empty file removed .gradle/7.5.1/gc.properties
Empty file.
16 changes: 8 additions & 8 deletions lib/modals/gsod/gsod_modal_old.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'dart:convert';

// This file will modal the projects in Google Summer of docs for year 2019 to 2020
class GsodModalOld {
String organization;
String organizationName;
String organizationUrl;
String technicalWriter;
String mentor;
Expand All @@ -15,7 +15,7 @@ class GsodModalOld {
String originalProjectProposalUrl;
int year;
GsodModalOld({
required this.organization,
required this.organizationName,
required this.organizationUrl,
required this.technicalWriter,
required this.mentor,
Expand All @@ -42,7 +42,7 @@ class GsodModalOld {
int? year,
}) {
return GsodModalOld(
organization: organization ?? this.organization,
organizationName: organization ?? this.organizationName,
organizationUrl: organizationUrl ?? this.organizationUrl,
technicalWriter: technicalWriter ?? this.technicalWriter,
mentor: mentor ?? this.mentor,
Expand All @@ -60,7 +60,7 @@ class GsodModalOld {

Map<String, dynamic> toMap() {
return <String, dynamic>{
'organization': organization,
'organization': organizationName,
'organization_url': organizationUrl,
'technical_writer': technicalWriter,
'mentor': mentor,
Expand All @@ -76,7 +76,7 @@ class GsodModalOld {

factory GsodModalOld.fromMap(Map<String, dynamic> map) {
return GsodModalOld(
organization: map['organization'] ?? "",
organizationName: map['organization'] ?? "",
organizationUrl: map['organization_url'] ?? "",
technicalWriter: map['technical_writer'] ?? "",
mentor: map['mentor'] ?? "",
Expand All @@ -97,14 +97,14 @@ class GsodModalOld {

@override
String toString() {
return 'GsodModalOld(organization: $organization, organizationUrl: $organizationUrl, technicalWriter: $technicalWriter, mentor: $mentor, project: $project, projectUrl: $projectUrl, report: $report, reportUrl: $reportUrl, originalProjectProposal: $originalProjectProposal, originalProjectProposalUrl: $originalProjectProposalUrl, year: $year)';
return 'GsodModalOld(organization: $organizationName, organizationUrl: $organizationUrl, technicalWriter: $technicalWriter, mentor: $mentor, project: $project, projectUrl: $projectUrl, report: $report, reportUrl: $reportUrl, originalProjectProposal: $originalProjectProposal, originalProjectProposalUrl: $originalProjectProposalUrl, year: $year)';
}

@override
bool operator ==(covariant GsodModalOld other) {
if (identical(this, other)) return true;

return other.organization == organization &&
return other.organizationName == organizationName &&
other.organizationUrl == organizationUrl &&
other.technicalWriter == technicalWriter &&
other.mentor == mentor &&
Expand All @@ -119,7 +119,7 @@ class GsodModalOld {

@override
int get hashCode {
return organization.hashCode ^
return organizationName.hashCode ^
organizationUrl.hashCode ^
technicalWriter.hashCode ^
mentor.hashCode ^
Expand Down
Loading

0 comments on commit 44db16d

Please sign in to comment.