1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-06-06 18:33:13 +03:00

ChangeLog: Document back/forwards compatible config.appversion

This commit is contained in:
Athanasius 2021-05-12 09:36:00 +01:00
parent 00f4e00dc8
commit c2f4e4fbda

View File

@ -217,6 +217,17 @@ Plugin Developers
In contexts where you're expecting a string this should mostly
just work. If needs be wrap it in `str()`.
For backwards compatibility with pre-5.0.0 you can use:
```python
from config import appversion
if callable(appversion):
edmc_version = appversion()
else:
edmc_version = appversion
```
* Example plugin
[plugintest](https://github.com/EDCD/EDMarketConnector/tree/main/docs/examples/plugintest)
updated. This includes an example of how to check core EDMC version if needs