fix for fetching language list
This commit is contained in:
parent
8620028afe
commit
4e4755d0a5
2 changed files with 6 additions and 1 deletions
|
|
@ -27,7 +27,6 @@ class Environment {
|
|||
}
|
||||
|
||||
static String get choreoApi {
|
||||
return "http://localhost:8000/choreo";
|
||||
return dotenv.env['CHOREO_API'] ?? 'Not found';
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -58,6 +58,12 @@ class PangeaLanguage {
|
|||
return true;
|
||||
}
|
||||
// return true;
|
||||
final DateTime lastFetchedDate = DateTime.parse(dateString);
|
||||
final DateTime targetDate = DateTime(2024, 1, 15);
|
||||
if (lastFetchedDate.isBefore(targetDate)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
final int lastFetched = DateTime.parse(dateString).millisecondsSinceEpoch;
|
||||
final int now = DateTime.now().millisecondsSinceEpoch;
|
||||
const int fetchIntervalInMilliseconds = 86534601;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue