Compare commits
No commits in common. "e92c500940e3eff43fbf40cdb8e4bd9b73a03a93" and "f640a25f59c22a4cb9e052cefafc61930ce5cf56" have entirely different histories.
e92c500940
...
f640a25f59
2 changed files with 28 additions and 14 deletions
|
@ -78,7 +78,7 @@ class KfetWebsocket {
|
||||||
|
|
||||||
listen() {
|
listen() {
|
||||||
var that = this;
|
var that = this;
|
||||||
this.socket = new ReconnectingWebSocket(this.url, [], { minReconnectionDelay: 100 });
|
this.socket = new ReconnectingWebSocket(this.url);
|
||||||
|
|
||||||
this.socket.onmessage = function (e) {
|
this.socket.onmessage = function (e) {
|
||||||
var data = $.extend({}, that.default_msg, JSON.parse(e.data));
|
var data = $.extend({}, that.default_msg, JSON.parse(e.data));
|
||||||
|
|
32
shell.nix
32
shell.nix
|
@ -1,12 +1,29 @@
|
||||||
{
|
{ pkgs ? import <nixpkgs> { }, ... }:
|
||||||
pkgs ? import <nixpkgs> { },
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
let
|
let
|
||||||
python = pkgs.python39;
|
python = pkgs.python38;
|
||||||
|
|
||||||
|
django-types = python.pkgs.buildPythonPackage rec {
|
||||||
|
pname = "django-types";
|
||||||
|
version = "0.17.0";
|
||||||
|
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
|
src = pkgs.fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
hash = "sha256-wcQqt4h2xXxyg0LVqwYHJas3H8jcg7uFuuC+BoRqrXA=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = with python.pkgs; [ poetry-core ];
|
||||||
|
|
||||||
|
# setup.cfg tries to pull in nonexistent LICENSE.txt file
|
||||||
|
# postPatch = "rm setup.cfg";
|
||||||
|
|
||||||
|
# propagatedBuildInputs = [ django typing-extensions ];
|
||||||
|
};
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|
||||||
pkgs.mkShell {
|
pkgs.mkShell {
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
export DJANGO_SETTINGS_MODULE=gestioasso.settings.local
|
export DJANGO_SETTINGS_MODULE=gestioasso.settings.local
|
||||||
|
@ -17,10 +34,7 @@ pkgs.mkShell {
|
||||||
pip install -r requirements-devel.txt | grep -v 'Requirement already satisfied:'
|
pip install -r requirements-devel.txt | grep -v 'Requirement already satisfied:'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
packages =
|
packages = [ python django-types ] ++ (with python.pkgs; [
|
||||||
[ python ]
|
|
||||||
++ (with python.pkgs; [
|
|
||||||
django-types
|
|
||||||
pip
|
pip
|
||||||
virtualenv
|
virtualenv
|
||||||
python-ldap
|
python-ldap
|
||||||
|
|
Loading…
Reference in a new issue