Skip to content

Commit

Permalink
🐛 Fix Algolia result JSON version parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
techouse committed May 14, 2022
1 parent 08f37b1 commit 4edf079
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bin/src/constants/config.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class Config {
Config._();

static const String version = '2.1.0';
static const String version = '2.1.1';
static final Uri githubRepositoryUrl =
Uri.https('github.com', '/techouse/alfred-django-docs');
static const String algoliaApplicationId = 'WODHKE4WZG';
Expand Down
2 changes: 1 addition & 1 deletion bin/src/models/search_result.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class SearchResult {
id = json['id'] as String,
permalink = json['permalink'] as String,
title = json['title'] as String,
version = json['version'] as int;
version = json['version'] as num;

Map<String, dynamic> toJson() => {
'objectID': objectID,
Expand Down
2 changes: 1 addition & 1 deletion info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
<key>variablesdontexport</key>
<array/>
<key>version</key>
<string>2.1.0</string>
<string>2.1.1</string>
<key>webaddress</key>
<string>https://github.com/techouse</string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Search the Django documentation using Alfred
# Prevent accidental publishing to pub.dev.
publish_to: 'none'

version: 2.1.0
version: 2.1.1

environment:
sdk: '>=2.17.0 <3.0.0'
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.1.0
2.1.1

0 comments on commit 4edf079

Please sign in to comment.