571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
31 lines
1.2 KiB
Diff
31 lines
1.2 KiB
Diff
From ee558ff66e467412942559a8a92252e3fc009920 Mon Sep 17 00:00:00 2001
|
|
From: Guillaume Mazoyer <guillaume@mazoyer.eu>
|
|
Date: Wed, 21 Feb 2024 23:32:32 +0100
|
|
Subject: [PATCH] Use pyixapi 0.2.3
|
|
|
|
---
|
|
diff --git a/extras/models/ixapi.py b/extras/models/ixapi.py
|
|
index 65572c971e065e3deed69465a71a54b4e1372851..637a004043e0a044c65a5e37fbb2b3bf82965436 100644
|
|
--- a/extras/models/ixapi.py
|
|
+++ b/extras/models/ixapi.py
|
|
@@ -7,7 +7,6 @@
|
|
from django.db import models
|
|
from django.db.models import Q
|
|
from django.urls import reverse
|
|
-from django.utils.timezone import make_aware
|
|
|
|
from peering_manager.models import ChangeLoggedModel
|
|
|
|
@@ -117,9 +116,9 @@ def dial(self):
|
|
if auth:
|
|
# Save tokens if they've changed
|
|
self.access_token = api.access_token.encoded
|
|
- self.access_token_expiration = make_aware(api.access_token.expires_at)
|
|
+ self.access_token_expiration = api.access_token.expires_at
|
|
self.refresh_token = api.refresh_token.encoded
|
|
- self.refresh_token_expiration = make_aware(api.refresh_token.expires_at)
|
|
+ self.refresh_token_expiration = api.refresh_token.expires_at
|
|
self.save()
|
|
|
|
return api
|