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:
parent
00f4e00dc8
commit
c2f4e4fbda
11
ChangeLog.md
11
ChangeLog.md
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user