ladok3 4.11__tar.gz → 4.12__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of ladok3 might be problematic. Click here for more details.

Files changed (33) hide show
  1. {ladok3-4.11 → ladok3-4.12}/PKG-INFO +1 -1
  2. {ladok3-4.11 → ladok3-4.12}/pyproject.toml +1 -1
  3. {ladok3-4.11 → ladok3-4.12}/src/ladok3/cli.nw +4 -2
  4. {ladok3-4.11 → ladok3-4.12}/LICENSE +0 -0
  5. {ladok3-4.11 → ladok3-4.12}/README.md +0 -0
  6. {ladok3-4.11 → ladok3-4.12}/doc/Makefile +0 -0
  7. {ladok3-4.11 → ladok3-4.12}/doc/abstract.tex +0 -0
  8. {ladok3-4.11 → ladok3-4.12}/doc/ladok3.tex +0 -0
  9. {ladok3-4.11 → ladok3-4.12}/doc/preamble.tex +0 -0
  10. {ladok3-4.11 → ladok3-4.12}/makefiles/doc.mk +0 -0
  11. {ladok3-4.11 → ladok3-4.12}/makefiles/exam.mk +0 -0
  12. {ladok3-4.11 → ladok3-4.12}/makefiles/haskell.mk +0 -0
  13. {ladok3-4.11 → ladok3-4.12}/makefiles/miun.course.mk +0 -0
  14. {ladok3-4.11 → ladok3-4.12}/makefiles/miun.depend.mk +0 -0
  15. {ladok3-4.11 → ladok3-4.12}/makefiles/miun.docs.mk +0 -0
  16. {ladok3-4.11 → ladok3-4.12}/makefiles/miun.port.mk +0 -0
  17. {ladok3-4.11 → ladok3-4.12}/makefiles/miun.pub.mk +0 -0
  18. {ladok3-4.11 → ladok3-4.12}/makefiles/noweb.mk +0 -0
  19. {ladok3-4.11 → ladok3-4.12}/makefiles/pkg.mk +0 -0
  20. {ladok3-4.11 → ladok3-4.12}/makefiles/portability.mk +0 -0
  21. {ladok3-4.11 → ladok3-4.12}/makefiles/pub.mk +0 -0
  22. {ladok3-4.11 → ladok3-4.12}/makefiles/results.mk +0 -0
  23. {ladok3-4.11 → ladok3-4.12}/makefiles/subdir.mk +0 -0
  24. {ladok3-4.11 → ladok3-4.12}/makefiles/tex.mk +0 -0
  25. {ladok3-4.11 → ladok3-4.12}/makefiles/transform.mk +0 -0
  26. {ladok3-4.11 → ladok3-4.12}/src/ladok3/.gitignore +0 -0
  27. {ladok3-4.11 → ladok3-4.12}/src/ladok3/Makefile +0 -0
  28. {ladok3-4.11 → ladok3-4.12}/src/ladok3/api.nw +0 -0
  29. {ladok3-4.11 → ladok3-4.12}/src/ladok3/data.nw +0 -0
  30. {ladok3-4.11 → ladok3-4.12}/src/ladok3/ladok3.nw +0 -0
  31. {ladok3-4.11 → ladok3-4.12}/src/ladok3/report.nw +0 -0
  32. {ladok3-4.11 → ladok3-4.12}/src/ladok3/student.nw +0 -0
  33. {ladok3-4.11 → ladok3-4.12}/src/ladok3/undoc.nw +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ladok3
3
- Version: 4.11
3
+ Version: 4.12
4
4
  Summary: Python wrapper and CLI for the LADOK3 REST API.
5
5
  Home-page: https://github.com/dbosk/ladok3
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "ladok3"
3
- version = "4.11"
3
+ version = "4.12"
4
4
  description = "Python wrapper and CLI for the LADOK3 REST API."
5
5
  authors = [
6
6
  "Daniel Bosk <dbosk@kth.se>",
@@ -570,7 +570,7 @@ try:
570
570
  "username": os.environ["LADOK_USER"],
571
571
  "password": os.environ["LADOK_PASS"]
572
572
  }
573
- if institution and vars:
573
+ if institution and vars["username"] and vars["password"]:
574
574
  return institution, vars
575
575
  except:
576
576
  pass
@@ -585,7 +585,9 @@ try:
585
585
  vars = {}
586
586
  for key in vars_keys.split(":"):
587
587
  try:
588
- vars[key] = os.environ[key]
588
+ value = os.environ[key]
589
+ if value:
590
+ vars[key] = value
589
591
  except KeyError:
590
592
  <<print warning about missing variable in [[LADOK_VARS]]>>
591
593
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes